Open Thyme-Cat opened 1 month ago
Alright so, this is an important issue, because it deals with the location of the chirp.db
file, which contains the data (at the moment). We've used the slides and the two files dump.sql and schema.sql, to create the chirp.db
file in the /tmp
directory. Which might cause a problem for people who do NOT have that file downloade. And so we should do something about that. (Brain juice is spent)
Acceptance criteria:
CHIRPDBPATH,
i.e., via dependency injection. In case no such variable is defined the database file shall be located under a user's temporary directory with the file namechirp.db.
dotnet run
will store the database file under<user's tempdir>
, whereas calling it with, e.g.,CHIRPDBPATH=./mychirp.db
dotnet run
will store the file in the current directory under the file namemychirp.db.
Hints: Check the official documentation on how to get values from environment variables.