Welcome to the Weather App! This application allows you to get current weather information and a 5-day forecast for any city. It also supports retrieving weather information based on your current location.
- π¦οΈ Search for current weather by city name.
- π Get a 5-day weather forecast.
- π Retrieve weather data based on your current location.
- π Maintain a list of recent city searches in a dropdown menu.
- JavaScript (Vanilla)
- Tailwind CSS
- OpenWeatherMap API
- A modern web browser (Chrome, Firefox, Safari, etc.)
- Internet connection
- Sign up at OpenWeatherMap to get a free API key.
- Once signed up, navigate to the API keys section in your account and copy your API key.
-
Clone the repository to your local machine or download the ZIP file and extract it.
https://github.com/Bobby-coder/Weather-Forecast-Application.git
-
Open the project directory
cd weather-app -
Replace the existing API key inisde app.js file with your OpenWeatherMap API key.
const apiKey = "YOUR_API_KEY_HERE";
-
Run app using Live server extension.