This is a small web application that fetches and displays weather information for a given city and country. The project was created in an evening as a way to practice and maintain web development skills.
- Search for weather information by entering a city and country.
- Displays key weather details, including:
- Temperature
- Weather description
- Wind speed
- Humidity
- Pressure
- Cloudiness
- Dynamically updates the weather information using the OpenWeatherMap API.
- Includes weather-specific icons for a better user experience.
- Built with Bootstrap 5 for responsive and clean design.
- HTML5: Markup structure for the web app.
- CSS3: Custom styles for layout and appearance.
- JavaScript: Logic for fetching and displaying weather data.
- Bootstrap 5: Responsive styling and layout.
- OpenWeatherMap API: Source for real-time weather data.
-
Clone the repository:
git clone <repository_url>
-
Open the project directory:
cd weather-app -
Replace the
api_keyin thescript.jsfile with your own OpenWeatherMap API key:const api_key = "your_api_key_here";
-
Open the
index.htmlfile in your browser to use the app.
weather-app/
├── index.html # Main HTML file
├── style.css # Custom CSS styles
├── script.js # JavaScript logic for the app
├── assets/ # Weather icons (e.g., clear.png, rain.png)
└── README.md # Documentation- Add support for geolocation to fetch weather for the user's current location.
- Improve error handling for invalid city or country inputs.
- Enhance the design with more advanced CSS animations.
- Add a feature to display a 7-day weather forecast.
- OpenWeatherMap API for providing the weather data.
- Bootstrap for the CSS framework.
Created by Thomas Warden as a quick and fun way to sharpen web development skills.