Skip to content

Anunaya776/Weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌦️ Weather App

A simple and intuitive weather application built using React that provides real-time weather updates for any city. This app fetches data from the OpenWeather API and displays temperature, humidity, wind speed, and weather conditions with a clean and responsive UI.

🚀 Features

Search Weather by City – Get weather details for any location in the world. ✅ Real-time Weather Data – Fetches up-to-date weather data using OpenWeather API. ✅ Dynamic UI – Changes background and icons based on weather conditions. ✅ Temperature, Humidity, and Wind Speed – Essential weather information at a glance. ✅ Fully Responsive Design – Works across all devices (mobile, tablet, desktop). ✅ Error Handling – Displays meaningful messages for invalid city searches.

🛠️ Tech Stack

  • Frontend: React
  • API: OpenWeather API
  • State Management: useState, useEffect

📦 Installation & Setup

  1. Clone the repository:

    git clone https://github.com/your-username/weather-app.git
    cd weather-app
  2. Install dependencies:

    npm install
  3. Get API Key from OpenWeather:

  4. Create an .env file and add your API key:

    REACT_APP_WEATHER_API_KEY=your_api_key_here
  5. Run the application:

    npm start
  6. Open in Browser: The app will be running at http://localhost:3000

🔧 Project Structure

weather-app/
├── public/
│   ├── index.html
│   └── assets/
├── src/
│   ├── components/
│   │   ├── WeatherCard.js
│   │   ├── SearchBar.js
│   ├── pages/
│   │   ├── Home.js
│   ├── utils/
│   │   ├── api.js
│   ├── App.js
│   ├── index.js
├── .env
├── .gitignore
├── package.json
├── README.md

✨ Future Enhancements

  • 🌍 Weather Forecast – 5-day forecast with hourly updates.
  • 🎨 Dark Mode – A toggle option for dark/light themes.
  • 📍 User Location – Auto-detect user’s location for local weather updates.
  • 📊 Additional Weather Data – Air quality index, UV index, and more.

🤝 Contributing

Contributions are welcome! If you’d like to improve this project, follow these steps:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-branch
  3. Commit changes: git commit -m 'Added new feature'
  4. Push to GitHub: git push origin feature-branch
  5. Create a Pull Request

📜 License

This project is licensed under the MIT License.


About

A simple weather app built with React that fetches real-time weather data using the OpenWeather API. Users can search for any city to get current temperature, humidity, wind speed, and weather conditions. The app features a clean UI with dynamic weather icons and background changes based on weather conditions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors