Weather Dashboard
A beautiful and responsive weather dashboard application built with React, TypeScript, and Tailwind CSS.
Features
- Search for weather by city name
- Display current weather conditions
- Show temperature, humidity, and wind speed
- Recent searches history
- Responsive design
- Dark mode support
- Error handling
- Loading states
Technologies Used
- React
- TypeScript
- Tailwind CSS
- TanStack Query
- Zustand
- Vitest & React Testing Library
- OpenWeather API
Getting Started
- Clone the repository
- Install dependencies:
npm install
- Copy
.env.example
to .env
and add your OpenWeather API key:VITE_OPENWEATHER_API_KEY=your_api_key_here
- Start the development server:
npm run dev
Testing
Run the test suite:
npm test
Building for Production
npm run build
Components
- Weather
- Logo
- Search
- CurrentWeather
- WeatherCard
- WeatherDetails
- HourlyWeather
Deployed on Vercel
https://weather-dashboard-n101.vercel.app