A minimalist .NET 10 console application designed to fetch random cat facts from the catfact.ninja API and store them locally.
- Controls: Press [SPACE] to fetch a fact, or [Q] to quit.
The application is configured via appsettings.json.
{
"CatFactConfig": {
"ApiUrl": "https://catfact.ninja/",
"RequestUrl": "fact",
"OutputFilePath": "cat_facts.txt"
}
}git clone https://github.com/patrick012016/cat-fact-app.git
cd cat-fact-appImportant
To run this project locally, you must have the .NET 10 SDK installed on your machine.
To ensure the application correctly loads the configuration, navigate to the project folder:
cd src/CatFact.ConsoleApp
dotnet runExecute these commands from the root directory (where the .sln file is):
docker build -f src/CatFact.ConsoleApp/Dockerfile -t catfactapp .
docker run -it --rm catfactappThis project is licensed under the Apache 2.0 License - see the LICENSE file for details.