Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-12T23:09:30.000Z (about 1 year ago)
- Last Synced: 2024-11-07T06:16:26.895Z (3 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:*
![WeatherForecast](https://github.com/BetulTugce/WeatherForecast/assets/79140478/cccfd7b8-1dcd-4fa1-a9d2-f18c045cf688)
*If permission is not granted for location information:*
![WeatherForecast](https://github.com/BetulTugce/WeatherForecast/assets/79140478/b5acbd41-d225-4b62-a8b8-388cbcf44cbf)