A modern, responsive weather application built with vanilla JavaScript and TailwindCSS. Features current weather conditions, 5-day forecast, geolocation support, and unit conversion.
- 🌡️ Current weather conditions
- 📅 5-day weather forecast
- 📍 Geolocation support
- 🔄 Unit conversion (Celsius/Fahrenheit)
- 📱 Responsive design
- ⚡ Performance optimized
- 🔧 PWA support
- 🎨 Beautiful UI with animations
- Resource preloading
- Service Worker for offline support
- Lazy loading of non-critical resources
- Optimized animations
- Cached DOM queries
- Debounced API calls
- Install Vercel CLI:
npm i -g vercel- Login to Vercel:
vercel login- Deploy:
vercel- Create a new repository on GitHub
- Initialize git and push your code:
git init
git add .
git commit -m "Initial commit"
git remote add origin your-repo-url
git push -u origin main- Enable GitHub Pages in your repository settings
- Create a new site on Netlify
- Connect your repository
- Configure build settings:
- Build command:
npm run build - Publish directory:
dist
- Build command:
- Clone the repository
- Install dependencies:
npm install- Start development server:
npm run devCreate a .env file with:
VITE_OPENWEATHER_API_KEY=your-api-key
MIT