Fast, minimal weather app built with React and Vite, styled with Tailwind CSS and animated using Motion. It shows the current conditions and a 5‑day forecast from OpenWeatherMap. Runs on Node 18+ and is deployed on Vercel.
- Current weather: temperature, humidity, wind, and conditions
- 5‑day forecast with daily breakdown
- City search with friendly errors
- Responsive layout with subtle animations
- React 19.1.0
- Tailwind CSS 4.1.11
- Motion 12.23.6 (Framer Motion for React 19)
- Vite 7.0.4
- Tooling: ESLint 9.31.0, Prettier 3.6.2
- Runtime: Node 18.18.0+, npm 9.0.0+
Prerequisites
- Node.js 18.18.0 or newer
- An OpenWeatherMap API key
Clone and run
# Clone
git clone https://github.com/viboverse/react-weather-app.git
cd react-weather-app
# Install deps
npm install
# Configure environment
# Create .env and add your API key
"VITE_API_KEY=YOUR_OPENWEATHER_API_KEY" | Out-File -Encoding utf8 .env
# Start dev server
npm run dev
Build and preview
npm run build
npm run preview
- OpenWeatherMap API for weather data
- Shields.io for the badges
- Vercel for hosting
Built by Vahab Afsharian