This is a simple web app created using HTML5, CSS3 and JavaScript. It allows users to check the weather forecast for a specific city. It fetches real-time weather data from the OpenWeatherMap API and displays essential information such as temperature, description, wind speed, and humidity.
- User-friendly interface with a responsive design.
- Input form to enter the city name for weather forecasting.
- Display of temperature, weather description, wind speed, and humidity.
- Utilizes Font Awesome for icons and OpenWeatherMap API for weather data.
- Icons change based on weather conditions.
To see a live demo, Check Demo.
-
Clone the repository: git clone
https://github.com/vsbuidev/weather-app.git
-
Open the
index.html
file in a web browser. -
Enter the desired city in the input field and click the "Search" button to get the weather forecast.
- Font Awesome - For icons.
- OpenWeatherMap API - For real-time weather data.
Before running the app, make sure to replace 'YOUR_API_KEY'
in the JavaScript code with your actual OpenWeatherMap API key.
// Replace 'YOUR_API_KEY' with your OpenWeatherMap API key eg: const apiKey = 'YOUR_API_KEY';
If you'd like to contribute to this project, please follow these guidelines:
- Fork the repository.
- Create a new branch:
git checkout -b feature/new-feature
. - Make your changes and commit them:
git commit -m 'Add new feature'
. - Push to the branch:
git push origin feature/new-feature
. - Submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.