A simple weather application built with React that displays current weather information for any city using the OpenWeatherMap API.
- Search for weather by city name
- Displays temperature (°C), humidity, wind speed, and weather condition
- Responsive and modern UI
- Weather icons for different conditions
- Fast development & build using Vite
- React (with Hooks)
- Vite (for fast development and build)
- OpenWeatherMap API (for weather data)
- CSS (custom styling, responsive design)
- ESLint (code linting)
-
📥 Clone the repository:
git clone https://github.com/Balaji-R-05/weather-app-react.git cd weather-app-react -
🔑 Add your OpenWeatherMap API key
- Create a
.envfile in the project root with the following content: - VITE_WEATHER_API_KEY (your OpenWeather API key)
- Get an API key from https://openweathermap.org/ and restart the dev server if it's running.
- Create a
-
📦 Install dependencies
npm install
-
🚀 Run the development server:
npm run dev
