Skip to content

Krishna-Bhandari-01/react-weather-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather App

A simple React application to display current weather information for a searched city or your current location.

Features

  • Search weather by city name
  • Get weather for your current location using geolocation
  • Displays temperature, location, and weather condition icon

Getting Started

Prerequisites

  • Node.js (v14 or higher recommended)
  • npm

Installation

  1. Clone the repository:
    git clone <repository-url>
    cd weather-app
  2. Install dependencies:
    npm install

Running the App

npm start

The app will be available at http://localhost:3000.

Project Structure

  • src/components/ - UI components (Button, Card, Input)
  • src/context/weather.jsx - Weather context and provider
  • src/api/index.js - API calls to weather service

Weather App

App Screenshot

API

This app uses WeatherAPI for fetching weather data.

License

MIT

About

A simple React app that lets you search for and view current weather information by city or your current location.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors