A small React app that shows the current weather for any city, built with React + Vite and the free Open-Meteo API (no API key required).
- Search weather by city name
- Displays temperature, condition, humidity, and wind speed
- Remembers your last 5 searches (saved in
localStorage) - Clean, responsive UI with plain CSS
useStatefor form input, loading, error, and result stateuseEffectfor syncing recent searches tolocalStorage- Two chained API calls (geocoding → forecast) using
fetchandasync/await - Conditional rendering for loading / error / result states
git clone <your-repo-url>
cd weather-app
npm install
npm run devThen open the local URL Vite prints (usually http://localhost:5173).
npm run build
npm run previewIt's free, requires no API key or sign-up, and has generous CORS support — which makes it easy to call directly from the browser without a backend or hidden secrets, ideal for a public front-end-only project.