Skip to content

viboverse/react-weather-app

Repository files navigation

React Weather App

React 19.1.0 Vite 7.0.4 Tailwind CSS 4.1.11 Motion 12.23.6 ESLint 9.31.0 Prettier 3.6.2 Node 18.18.0+ npm 9.0.0+ Powered by Vercel

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.

Live demo »

✨ Features

  • Current weather: temperature, humidity, wind, and conditions
  • 5‑day forecast with daily breakdown
  • City search with friendly errors
  • Responsive layout with subtle animations

🛠️ Tech stack (versions)

  • 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+

🚀 Installation

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

📸 Screenshots

Desktop Screenshot

🙏 Acknowledgments

  • OpenWeatherMap API for weather data
  • Shields.io for the badges
  • Vercel for hosting

Built by Vahab Afsharian

About

Weather dashboard with search and forecast powered by a public weather API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published