Skip to content

About

This project fetches and displays current weather data for any city using a weather API wttr.in . It includes a responsive design, loading states, error handling, and clean React component structure. Ideal for learning API integration and React fundamentals.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

🌤️ React Weather App

A simple and beautiful weather web application built with React.
It allows users to search cities worldwide and get real-time weather updates, including temperature, conditions, and forecasts.

🖌️ Background color changes dynamically depending on the current weather (e.g., sunny, rainy, cloudy).
🌦️ Weather icons and messages adapt to the selected location’s weather in real time.

Image


✨ Features

  • 🔍 City search with autocomplete suggestions
  • 🌍 Worldwide location support
  • 🌤️ Dynamic background based on weather (sun, cloud, rain, etc.)
  • 🌡️ Current temperature, humidity, and wind speed
  • 🕒 Hourly forecast and next 2 days forecast
  • 📱 Fully responsive design
  • ⚠️ Error handling for invalid search
  • ⏳ Loading state
  • 🌐 City list with small flags in UI (if available)

📸 Screenshots

Image Image Image Image Image Image


🧰 Technologies Used

  • React (with functional components & hooks)
  • OpenWeatherMap API
  • Custom CSS (no framework)
  • Optional: country-flag-icons, geolocation APIs

🚀 Live Demo

👉 Click here to try the app


🛠️ Getting Started

# Clone the repository
git clone https://github.com/your-username/your-repo-name.git

# Install dependencies
npm install

# Start the development server
npm start


You can customize these backgrounds in the CSS depending on weather.main or weather.description.

🧾 License
This project is licensed under the MIT License.

🥹❤️

About

This project fetches and displays current weather data for any city using a weather API wttr.in . It includes a responsive design, loading states, error handling, and clean React component structure. Ideal for learning API integration and React fundamentals.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages