This Weather Web Application allows users to view the current weather and air quality index (AQI) for any location worldwide. The application provides detailed information on hourly forecasts and 7-day forecasts. Further, it provides temperature, humidity, pressure, visibility, and sunrise/sunset times. Users can search for locations and view the weather data in an intuitive and user-friendly interface.
- Current Weather: Displays the current temperature, weather conditions, and other relevant details for the selected location.
- Air Quality Index (AQI): Displays AQI data and pollutant levels for the selected location.
- Hourly Forecast: Provides a forecast for the next 24 hours with details on temperature, weather conditions, and wind speed.
- 5-Day Forecast: Shows a 5-day weather forecast with daily temperature highs and conditions.
- Sunrise & Sunset Times: Shows the sunrise and sunset times for the current day.
- Moonrise & Moonset Times: Shows the moonrise and moonset times for the current day.
- Search Functionality: Allows users to search for any location worldwide and view its weather data.
- Responsive Design: Optimized for both desktop and mobile devices.
- HTML: Structure of the web pages.
- CSS: Styling of the web pages.
- JavaScript: Client-side scripting and API interactions.
- Weather API: Fetches weather data from a weather service provider.
- Reverse Geocoding API: Converts geographic coordinates into a human-readable address.
-
Clone the repository:
git clone https://github.com/Krish209/weather-app.git
-
Open with VSCode:
code . -
Install Dependencies:
- Ensure you have a local server setup (e.g., using VSCode Live Server, XAMPP, etc.) to serve the application files.
-
API Configuration:
- Obtain API keys from the weather service provider and reverse geocoding service.
- Update the
api.jsfile with your API keys:const api_key = "YOUR_WEATHER_API_KEY"; const geo_api_key = "YOUR_GEO_API_KEY";
-
Run the Application:
- Start your local server and navigate to the application URL (e.g.,
http://localhost/weather-app).
- Start your local server and navigate to the application URL (e.g.,
weather-app/
├── assets/
│ ├── images/
│ ├── font/
├── css/
│ └── style.css
├── js/
│ ├── api.js
│ ├── app.js
│ ├── module.js
| ├── route.js
├── favicon.svg
├── index.html
└── README.md



