There is a ./.iac/deploy.sh script that deploys the infrastructure to Azure.
It creates a resource group, app configuration, and a few keys in the App Configuration.
The script prints out the connection string to the App Configuration.
The ./src/ConsoleApp folder contains a dotnet 8 console app that reads the keys from the App Configuration.
The ./src/WebApp folder contains a dotnet 8 web app that reads the keys from the App Configuration.
The web app is also configured to refresh all the keys when "Version" key is changed.
First export the connection string to the App Configuration as an environment variable:
export CONFIG_CONNECTION_STRING="<copy-paste the connection string from deploy.sh output>"
Then run the console app:
dotnet run
Then run the web app:
dotnet run