This is a Weather Application built using JavaScript, HTML, and CSS. The app allows users to fetch and display real-time weather information for any city worldwide.
- Real-time Weather Data: Fetch current weather data using an API.
- Search Functionality: Search for weather details by city name.
- Responsive Design: Optimized for various screen sizes.
- Dynamic UI: Weather icons, temperature, and descriptions update dynamically.
- Frontend: HTML, CSS, JavaScript
- API Integration: OpenWeatherMap API (or any weather API of choice)
- Styling: CSS with Flexbox and animations
To run this project locally:
-
Clone the repository:
git clone https://github.com/venujaranasinghe/weather-app.git
-
Navigate to the project directory:
cd weather-app
-
Open the
index.html
file in your browser:open index.html
-
Add your API key:
- Sign up on OpenWeatherMap and get a free API key.
- Add the API key to the
main.js
file:const API_KEY = 'your_api_key_here';
├── index.html
├── css
│ └── styles.css
├── js
│ └── main.js
├── images
│ └── (Optional assets like weather icons)
- Add 7-day weather forecast functionality.
- Display additional weather parameters like wind speed and humidity.
- Improve UI/UX with more animations and themes.
This app can be deployed to any static hosting platform, such as:
- GitHub Pages
- Netlify
- Vercel
- Commit and push your code to a GitHub repository.
- Go to the repository settings.
- Enable GitHub Pages under the Pages section.
- Set the branch to
main
(or your default branch) and the folder to/root
. - Save, and your app will be live at
https://venujaranasinghe.github.io/weather-app/
.
If you have suggestions or encounter issues, feel free to open an issue in this repository or contact me.
Pending...
Thank you for exploring the Weather App!