A weather application developed with Blazor Server using .NET 7.0. It retrieves weather information using the OpenWeatherMap API.
-
Clone the project:
git clone https://github.com/BetulTugce/WeatherForecast.git
-
Navigate to the project directory:
cd WeatherForecast
-
Run the project:
dotnet run
- Blazored.SessionStorage v2.4.0
- MudBlazor v6.11.1
- [Newtonsoft.Json] v13.0.3
- [BrowserInterop] v1.1.2
The appsettings.json
file is not included in the repository as it contains sensitive information, such as API keys. Instead, you should create your own appsettings.json
file with the following structure:
{
"OpenWeatherMap": {
"ApiKey": "your_api_key_here",
"WeatherUrl": "https://api.openweathermap.org/data/2.5/",
"IconUrl": "https://openweathermap.org/img/w/"
}
}
If permission is granted for location information:
If permission is not granted for location information: