Weather Detector is a web application that allows you to search for cities and will provides the current weather details along with the local time in that city.
- 🌦️ Real-time Weather Data: Get the latest weather information for any city.
- 🌍 Time Zone Display: See the current time in the searched city.
- 🔍 Easy Search: Simply type in the city name for instant results.
- 📊 Detailed Weather Information: Temperature, humidity, wind speed, and more.
- 🎨 Responsive Design: Works on all devices, from desktops to smartphones.
- ✨ Magic ✨
- Backend: C# (.NET)
- Frontend: JavaScript (React)
The application depends on several APIs which are:
- Geocoding API - Geocoding API is a simple tool that we have developed to ease the search for locations while working with geographic names and coordinates.
- Open Weather Map API - Access current weather data for any location on Earth!
- TimeZone Api - TimeZoneDB provides a free time zone database for cities of the world.
- Fork and Clone the Repository:
- Use your terminal to fork and clone this repo.
- Obtain API Keys:
- Create accounts at OpenWeatherMap and TimeZoneDB to get your own API keys.
- Configure API Keys:
- Modify your appsettings.json file with your API keys to use the APIs:
{ "WeatherApi": { "ApiKey": "YOUR_KEY", "BaseUrl": "https://api.openweathermap.org/data/2.5/" }, "GeocodingApi": { "ApiKey": "YOUR_KEY", "BaseUrl": "http://api.openweathermap.org/geo/1.0/direct" }, "TimeZoneApi": { "ApiKey": "YOUR_KEY", "BaseUrl": "http://api.timezonedb.com/v2.1/get-time-zone" } } - Run the Backend:
- Navigate to the Backend folder in the terminal.
- Run the command
dotnet runto start the .NET project.
- Run the Frontend:
- Navigate to the Frontend folder.
- Install dependencies:
npm ci - Start the development server:
npm run dev
- Access the Application:
- Open the link provided in your terminal to use the application.
![]() |
![]() |
|---|---|
![]() |
![]() |



