Skip to content

A weather application developed with Blazor Server using .NET 7.0. It retrieves weather information using the OpenWeatherMap API.

License

Notifications You must be signed in to change notification settings

BetulTugce/WeatherForecast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

    git clone https://github.com/BetulTugce/WeatherForecast.git
  2. Navigate to the project directory:

    cd WeatherForecast
  3. Run the project:

    dotnet run

Dependencies

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:

{
  "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

If permission is not granted for location information:

WeatherForecast