Skip to content

This is a weather application built using React. It fetches weather data from the OpenWeather API and displays current weather information based on user input (city name).

Notifications You must be signed in to change notification settings

krishnapraveen84/WeatherApplication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather Application

This is a weather application built using React. It fetches weather data from the OpenWeather API and displays current weather information based on user input (city name).

Features

  • Display current location, temperature, date, and time
  • Search functionality to fetch weather data for different locations
  • Dark mode and light mode toggle
  • Responsive design

Bonus Features

  • Display additional weather details such as humidity, wind speed, and weather description

Getting Started

To run the application locally:

  1. Clone the repository:

    git clone https://github.com/krishnapraveen84/WeatherApplication
    cd weather-app
  2. Install dependencies:

    npm install
  3. Get your API key from OpenWeather and replace YOUR_API_KEY in App.js.

  4. Start the application:

    npm start

Known Issues

  • Ensure valid city names are entered to fetch the correct weather data.
  • Network failures

Handled Issues

  • Handled the Invalid city name input by rendering the NotFound image and text to user
  • Handled the Network failures by showing user the message and Retry button to again fatech the data

Tech Stack Used

React JS JavaScript HTMl5 CSS Flex Box Media Quires (for responsive websites)

Thrid-party-packages

react-loader-spinner

components

Weather component

Scope OF Improvements

  • Adding Multiple cities names and when user clcks on specific city it will show respective details
  • Hourly forecast
  • Adding maps

Deployed the project using Render

Useful websites

  • cloudinary (for images)
  • colorhunt (for colors)

About

This is a weather application built using React. It fetches weather data from the OpenWeather API and displays current weather information based on user input (city name).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published