Skip to content

A responsive and modern weather application built with **React, styled-components, Axios, and the OpenWeather API**. It allows users to search for cities around the world, view detailed real-time weather information, and revisit recent searches with pagination.

License

Notifications You must be signed in to change notification settings

AnujG-05/weather-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌍 SkyCast Edge

A responsive and modern weather application built with React, styled-components, Axios, and the OpenWeather API.
It allows users to search for cities around the world, view detailed real-time weather information, and revisit recent searches with pagination.


🎬 DEMO - VIDEO

WEATHER-APP.DEMO.mp4

✨ Features

  • 🔎 Search any city worldwide using OpenWeather API
  • 🕒 Shows real-time local time for each city (auto updates every second)
  • 🌡 Detailed weather information:
    • Temperature, conditions, feels like
    • Sunrise & sunset times
    • Humidity, pressure, visibility, wind speed
  • 🌓 Next-level Dark / Light mode toggle:
    • Beautiful animated sun ☀️ / moon 🌙 slider switch
    • Saves preference to localStorage
  • 📚 Recently Visited Cities:
    • Stores up to 30 cities
    • Displays 8 per page with pagination controls
    • Option to remove cities from the list
  • 🎨 Modern UI & Animations:
    • Floating cloud background animation
    • Interactive 3D card hover animations
    • Smooth fade/zoom transitions for elements
  • Weather icons dynamically rendered from OpenWeather
  • 🦾 Handles loading state with skeleton shimmer and clear error messages

🚀 Getting Started

1️⃣ Clone the repository

git clone https://github.com/AnujG-05/weather-app

2️⃣ Install dependencies

npm install

3️⃣ Set up OpenWeather API Key

  • Create an account at OpenWeather
  • Copy your API key
  • Replace the placeholder inside src/App.js:
const API_KEY = "YOUR_OPENWEATHER_API_KEY";

4️⃣ Run the app

npm start   # if using Create React App
# or
npm run dev # if using Vite

📂 Project Structure

public/
  index.html
src/
  index.js          # App entry point
  App.js            # Main logic & UI components
  theme.js          # Light/Dark theme styles

🛠️ Technologies Used

  • ⚛️ React (with hooks)
  • 💅 styled-components (dark/light themes + animations)
  • 🌐 Axios (API requests)
  • ☁️ OpenWeather API

📜 License

This project is licensed under the MIT License.

About

A responsive and modern weather application built with **React, styled-components, Axios, and the OpenWeather API**. It allows users to search for cities around the world, view detailed real-time weather information, and revisit recent searches with pagination.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published