Skip to content

anugrahkariyatt/React-Weather-App

Repository files navigation

Weather App

A modern, responsive weather dashboard that provides real-time weather insights, air quality monitoring, and 5-day forecasts with dynamic visual updates.


Description

This project is a comprehensive weather dashboard built for users who need detailed environmental data beyond just temperature. It integrates multiple professional weather APIs to provide Air Quality Index (AQI), UV Index, and interactive temperature trends in a sleek, mobile-first interface.


Screenshots / Demo

Dashboard Overview

  • Desktop View
  • Mobile View

Features

  • Real-time Weather Data – Temperature, humidity, wind speed, and pressure
  • Search Functionality – Geocoding-enabled city search worldwide
  • Advanced Metrics
    • AQI status with color indicators (Good / Moderate / Poor)
    • UV Index safety levels
  • Interactive Visuals
    • 24-hour temperature chart
    • 5-day weather forecast
  • Dynamic UI
    • Background gradients change based on time of day and weather conditions

Tech Stack

Frontend

  • React (v19)
  • Tailwind CSS (v4)

Build Tool

  • Vite (v7)

Charting

  • MUI X Charts
  • Chart.js
  • react-chartjs-2

Routing

  • React Router DOM (v7)

APIs

  • OpenWeatherMap
    • Current weather
    • 5-day forecast
    • Air Pollution data
  • Open-Meteo
    • Geocoding (search)
    • UV Index
    • 15-minute interval metrics

Installation & Setup

Clone the repository

git clone https://github.com/Anugrah71/React-Weather-App.git
cd weather-app

Install dependencies

npm install

Run the project

npm run dev

Environment Variables

Create a .env file in the root directory and add:

VITE_API_KEY=your_openweather_api_key

Folder Structure

src/
│── assets/          # Icons & UI images (Wind, UV, Barometer, etc.)
│── components/      # SearchBar, TemperatureChart
│── service/         # Weatherapi.js (API logic)
│── pages/           # Home.jsx (Main dashboard)
│── App.jsx          # Root component
└── main.jsx         # Entry point

Future Improvements

  • Location-based search (auto-detect user location)
  • Search history using local storage
  • Additional metrics (visibility, "Feels Like" temperature)
  • Dark / Light theme toggle

About

A modern React-based Weather App with live forecasts, geolocation, and dynamic backgrounds.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors