A lightweight and user-friendly weather application built with JavaScript that fetches and displays current weather information based on user input or geolocation.
- ✅ Search by city name or use your current location
- 🌡️ Displays temperature, humidity, wind speed, and weather description
- 🖼️ Dynamic weather icons that reflect real-time conditions
- 🚀 Responsive design for desktop and mobile
- 🧩 Easily extendable—add forecasts, background themes, or API sources
- HTML/CSS/JavaScript – Core technologies
- OpenWeatherMap API – For real-time weather data
- [Optional] Bootstrap – For flexible layout & responsiveness
- Structure:
weather-app/
├── index.html ← Search input & weather display
├── styles.css ← App styling
├── app.js ← API calls & UI logic
├── assets/ ← Weather icons or images
└── README.md ← Documentation
-
Clone the repo
git clone https://github.com/ManibalaSinha/Wheather-App.git cd Wheather-App -
Get your OpenWeatherMap API key Sign up at openweathermap.org → API keys
-
Configure API key In
app.js, update:const API_KEY = 'YOUR_API_KEY_HERE';
-
Run locally
-
Open
index.htmlin your browser -
Or serve it using a simple HTTP server:
npx live-server
-
-
Try it out!
- Enter a city (e.g., "Toronto") and click Search
- Or use the "Use my location" button
Desktop layout with city search
- User action triggers API fetch from OpenWeatherMap
- JSON response is parsed to extract key data
- UI is dynamically updated with temperature, icon, and other details
- (Optional) Browser geolocation API fetches your current coordinates
- 🔲 Add 5-day weather forecast
- 🔲 Store search history locally (via localStorage)
- 🔲 Improve UI: animations, auto-theme based on weather
- 🔲 Unit tests for API responses & UI rendering
- 🔲 Deploy via GitHub Pages or Netlify
Contributions are welcome—fork the repository to:
- Add new features (like forecast or themes)
- Fix bugs or optimize code
- Improve UI/UX or add mobile-first design
Submit your PR and let's improve the project together!
- Author: Manibala Sinha
- Email: [email protected]
- License: MIT