https://github.com/betultugce/weatherforecast
A weather application developed with Blazor Server using .NET 7.0. It retrieves weather information using the OpenWeatherMap API.
https://github.com/betultugce/weatherforecast
api-consumer blazor blazor-application blazor-server blazor-server-app mudblazor newtonsoft-json openweathermap openweathermap-api sessionstorage weather weather-app weather-forecast weather-information
Last synced: 14 days ago
JSON representation
A weather application developed with Blazor Server using .NET 7.0. It retrieves weather information using the OpenWeatherMap API.
- Host: GitHub
- URL: https://github.com/betultugce/weatherforecast
- Owner: BetulTugce
- License: mit
- Created: 2023-12-09T13:33:11.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-12T23:09:30.000Z (almost 2 years ago)
- Last Synced: 2024-12-27T11:43:10.442Z (11 months ago)
- Topics: api-consumer, blazor, blazor-application, blazor-server, blazor-server-app, mudblazor, newtonsoft-json, openweathermap, openweathermap-api, sessionstorage, weather, weather-app, weather-forecast, weather-information
- Language: HTML
- Homepage:
- Size: 212 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# WeatherForecast
A weather application developed with Blazor Server using .NET 7.0. It retrieves weather information using the OpenWeatherMap API.
## Installation
1. Clone the project:
```bash
git clone https://github.com/BetulTugce/WeatherForecast.git
```
2. Navigate to the project directory:
```bash
cd WeatherForecast
```
3. Run the project:
```bash
dotnet run
```
## Dependencies
- [Blazored.SessionStorage](https://github.com/Blazored/SessionStorage) v2.4.0
- [MudBlazor](https://github.com/MudBlazor/MudBlazor) v6.11.1
- [Newtonsoft.Json] v13.0.3
- [BrowserInterop] v1.1.2
## Configuration
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:
```json
{
"OpenWeatherMap": {
"ApiKey": "your_api_key_here",
"WeatherUrl": "https://api.openweathermap.org/data/2.5/",
"IconUrl": "https://openweathermap.org/img/w/"
}
}
```
## Screenshot
*If permission is granted for location information:*

*If permission is not granted for location information:*
