Skip to content

Priyanshiunique/weathernow

Repository files navigation

🌦️ WeatherNow

A modern weather app built with React, styled using Material UI (MUI), and powered by the OpenWeather API. The app allows users to search for any place and get real-time weather information.

📽 Demo Video

🌤️ 🌧️ ![Watch the demo]Cover Image

🚀 Features

  • 🔍 Real-Time Place Search: Enter a city name to instantly fetch and display weather data.
  • 🌄 Dynamic Weather Imagery: Background and icons update based on the current weather condition (e.g., sunny, rainy, cloudy).
  • ⚠️ Error Handling: Displays a user-friendly message when a place is not found.

🛠️ Tech Stack

  • Frontend: React
  • UI Components: MUI (Material UI)
  • Weather Data: OpenWeatherMap API

📦 Installation

  1. Clone the repository:
  git clone https://github.com/your-username/WeatherNow.git

  cd mini-project-react   
  1. Install dependencies:
    npm install
  1. Set up API key:

    Create a .env file in the root directory

    VITE_API_KEY=enter_your_api_key
    VITE_API_URL=enter_your_api_url
  1. Start the development server:
  npm run dev

📁 Folder Structure

WeatherNow/        # Installed dependencies
├── public/                # Static files 
├── src/  
|       ├── assets/
|       ├── InfoBox.jsx
|       ├── InfoBox.css
|       ├── SearchBox.jsx
|       ├── SearchBox.css
|       ├──WeatherApp.jsx
|       ├── App.jsx
|       ├── App.css
|       ├── main.jsx
|       └── index.css                                
├── .gitignore             
├── eslint.config.js       
├── index.html             
├── package-lock.json     
├── package.json           
├── README.md             
├── vite.config.js        


About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published