An ASP.NET Core MVC app demonstrating the use of:
- .NET Core SDK 2.2 or later. (Download here)
- Request a free API key for OpenWeatherMap's Current Weather API here.
- Store the API key as a user secret by doing the following:
- In a command shell, navigate to the folder containing the
*.csproj
file - Execute the following command, where <your_api_key_here> is replaced with your unique API key:
dotnet user-secrets set OpenWeatherMapApiKey <your_api_key_here>
- In a command shell, navigate to the folder containing the