This project uses TypeScript, React and Tailwind. You will need Node.js installed to run it.
- Clone the repo:
git clone https://github.com/jckpn/weather-demo/ - Navigate to the project directory:
cd weather-demo - Install dependencies:
npm install - Create a
.env.localfile in the root directory and add your OpenWeatherMap API key:VITE_OPENWEATHER_API_KEY=1234... - Start the development server:
npm run dev
Type any city name in the search bar to see its current weather status. It should appear instantly - if it doesn't, check your connection or API key.
TODO:
- Add country dropdown selector at end of search bar
- Show state if US city
- Add tests with Vitest