Skip to content

The code is a React weather app that fetches data from OpenWeatherMap. Users input a city, and it displays temperature, humidity, wind speed, and a weather icon. The app is functional but can benefit from improvements in error handling and code organization.

Notifications You must be signed in to change notification settings

sahanRanasingha/Weather-WebApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

The code is a React weather app that fetches data from OpenWeatherMap. Users input a city, and it displays temperature, humidity, wind speed, and a weather icon. The app is functional but can benefit from improvements in error handling and code organization.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published