A simple React-based Weather App that allows users to input a city and country to fetch and display the current weather information.
React Weather Application fetches weather data using public APIs (e.g., OpenWeatherMap API) and displays the temperature, humidity, weather condition, and other relevant details for the entered city and country.
- City & Country Input – Users can type a city and select country
- Weather Display – Shows temperature, humidity, wind speed, and weather condition
- Responsive Design – Works on desktop and mobile
- Frontend: React, CSS Modules
- API: OpenWeatherMap API
- State Management: useState, useEffect
- HTTP Requests: Fetch API
git clone https://github.com/your-username/react-weather-application.git
cd react-weather-application
npm installnpm startThe app will run at:
http://localhost:3000
Make sure to add your API key in the
.envfile (e.g.,REACT_APP_WEATHER_API_KEY=your_api_key).
📦 react-weather-application
┣ 📂 public
┣ 📂 src
┃ ┣ 📂 components
┣ 📜 package.json
┣ 📜 .env
┗ 📜 README.md
- Forecast Data – 5-day / 7-day weather forecast
- Search History – Save recently searched cities
- Location Detection – Auto-detect user location using geolocation API
- Unit Toggle – Switch between Celsius and Fahrenheit
- Background Animations – Dynamic animations for sunny, rainy, or snowy weather
- Dark Mode – UI theme toggle
- Weather Alerts – Notify for extreme weather conditions
MIT License