A modern, responsive Weather Application built using HTML, CSS, and JavaScript only. It provides real-time weather data, country-based browsing, city autocomplete, favorites, and mobile-friendly navigation.
- 🌍 Search weather by city
- 🔍 City autocomplete suggestions
- 🏳 Browse all countries with flags
- ⭐ Favorite countries
- 📱 Mobile-friendly sidebar with gestures
- 🌦 Real-time weather data
- ⚡ Progressive Web App (PWA) support
- HTML5
- CSS3
- Vanilla JavaScript
- WeatherAPI
- Service Workers (PWA)
WEATHER/
│── index.html
│── style.css
│── script.js
│── countries.json
│── sw.js
│── manifest.json
│── icon-192.png
│── icon-512.png
- Clone or download the project
- Open
index.htmlin your browser (Use a local server for best results — required for PWA)
Example:
npx serveThis project uses WeatherAPI.
Update the API key in script.js if needed:
const API_KEY = "YOUR_API_KEY_HERE";Get your free API key from: 👉 https://www.weatherapi.com/
- Installable on mobile and desktop
- Offline support via service worker
- Fast and lightweight
- No frameworks used
- No backend required
- Designed for learning, portfolios, and demos
Free to use and modify for personal or educational purposes.