A simple, responsive weather application that allows users to get real-time weather data for any city. Built with HTML, CSS, and JavaScript, the app fetches weather data from the OpenWeatherMap API and features light/dark theme switching for a better user experience.
- π Search weather by city name
- π‘οΈ Displays temperature and weather condition
- π¨ Toggle between light and dark themes
- π‘ Responsive and modern UI
β οΈ Error handling for invalid cities
https://weather-app-peach-nine-79.vercel.app/
- HTML
- CSS
- JavaScript (ES6)
- OpenWeatherMap API
-
Clone the repository
git clone https://github.com/your-username/weather-app.git cd weather-app
-
Get your API Key
Sign up at OpenWeatherMap
Go to your dashboard and copy your API key
-
Add API Key
Open script.js
Replace the placeholder API key:
const API_KEY = "YOUR_API_KEY_HERE";
-
Open in browser Open index.html in your browser
Or use Live Server in VS Code for development
β To Do Add unit tests
Add autocomplete suggestions for cities
Improve mobile responsiveness
Add geolocation support to get weather for current location
π€ Contributing
Contributions are welcome! Feel free to open issues or submit pull requests to enhance the app.


