A simple and responsive weather application built using React that fetches real-time weather data using the OpenWeather API. Users can search for any city and view temperature, humidity, and weather conditions in a clean UI.
- 🔍 Search weather by city name
- 🌡️ Real-time temperature display
- 💧 Humidity & feels-like temperature
- 📉 Min & Max temperature
- 🌥️ Weather condition description
- 🎨 Clean and responsive UI
- ⚡ Fast performance with Vite
- React (Vite)
- JavaScript (ES6+)
- Material UI
- OpenWeather API
- CSS
(Make sure your screenshot file is named
screenshot.pngand placed in root folder)
- Clone the repository
git clone https://github.com/shanusingh01/react-weather-app.git- Navigate to project folder
cd react-weather-app- Install dependencies
npm install- Run the app
npm run dev- Get your API key from: https://openweathermap.org/api
- Replace your API key in
SearchBox.jsx:
const API_KEY = "your_api_key_here";src/
│── App.jsx
│── WeatherApp.jsx
│── SearchBox.jsx
│── InfoBox.jsx
│── App.css
│── index.css
- 🌍 Add geolocation support
- 📅 5-day forecast
- 🌙 Dark/Light mode toggle
- ❌ Error handling for invalid city
Contributions are welcome! Feel free to fork this repo and submit a pull request.
If you like this project:
👉 Give it a ⭐ on GitHub 👉 Share it with others
This project is open-source and free to use.
