A weather lookup app that displays current conditions for any city using a live weather API.
- Search for weather by city name
- Displays temperature (°C), weather description, humidity, and wind speed
- Shows an error message when a city isn't found
- Fetches real-time data from the OpenWeatherMap API
- HTML5
- CSS3
- JavaScript (Vanilla) with the Fetch API
- Clone or download this folder.
- Open
index.htmlin your browser (requires an internet connection). - Enter a city name and click Search.
Security note:
script.jscurrently contains a hardcoded OpenWeatherMap API key. Since this is a public repository, consider regenerating that key and loading it from an environment variable or a.gitignore'd config file instead of committing it directly.
Weather_App/
├── index.html
├── style.css
└── script.js