Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 953 Bytes

README.md

File metadata and controls

46 lines (29 loc) · 953 Bytes

React Weather App

A simple weather app built with React that fetches weather data from the OpenWeatherMap API.

Features

  • Search for the current weather in a specific city.
  • Displays temperature, humidity, and wind speed.
  • Shows weather icons based on the current weather conditions.

Getting Started

  1. Clone the repository:

    git clone https://github.com/sahanRanasingha/Weather-WebApp.git
    cd Weather-WebApp
  2. Install dependencies:

    npm install
  3. Set up your OpenWeatherMap API key:

    Replace 'YOUR_API_KEY' in WeatherApp.js with your actual OpenWeatherMap API key.

  4. Run the application:

    npm start

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

Usage

  1. Enter a city name in the search input.
  2. Click the search icon to fetch and display the current weather for that city.

Dependencies

  1. React
  2. react-toastify