Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Weather Checker

Minimal React + Vite app to quickly check weather for any city using OpenWeatherMap.

Getting started

  1. Install dependencies
npm install
  1. Add your OpenWeather API key in a .env file at the project root:
VITE_OPENWEATHER_KEY=YOUR_KEY_HERE
  1. Run the dev server
npm run dev

Features

  • Search by city name (controlled input)
  • Loading and error states
  • Toggle between °C and °F (converts locally)
  • Shows weather icon
  • Saves last searched cities to localStorage

Notes

  • This app uses import.meta.env.VITE_OPENWEATHER_KEY for the API key (Vite convention).
  • If you prefer toggling to always re-fetch for the other unit, change handleUnitToggle to call the API again.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages