A modern, responsive weather application built with React, TypeScript, and Vite. Get real-time weather information for any city using the OpenWeatherMap API.
- 🌤 Real-time weather data
- 🔍 City search functionality
- 📱 Responsive design
- 💾 Recent searches history
- 🎨 Modern UI with animations
- 🔄 Loading states
- ⌨️ Keyboard navigation support
- React 18
- TypeScript
- Vite
- Axios
- OpenWeatherMap API
- React Spinners
- Node.js (v14 or higher)
- npm or yarn
- OpenWeatherMap API key
- Clone the repository:
git clone https://github.com/maro14/weather-app.git- Install dependencies:
pnpm install- Create a
.envfile in the root directory and add your OpenWeatherMap API key:
VITE_WEATHER_API_KEY=your_api_key_here
- Start the development server:
pnpm run devTo create a production build:
pnpm run buildTo preview the production build:
pnpm run previewThe following environment variables are required:
VITE_WEATHER_API_KEY: Your OpenWeatherMap API key
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenWeatherMap for providing the weather data API
- React Spinners for loading animations
- Vite for the build tooling