Skip to content

This Weather Application is a simple web application built with React that allows users to fetch and display weather information based on city names using the OpenWeatherMap API.

Notifications You must be signed in to change notification settings

HamzaRasheed26/React-Weather-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather Application

Overview

This Weather Application is a simple web application built with React that allows users to fetch and display weather information based on city names using the OpenWeatherMap API.

Prerequisites

Before running the application locally, make sure you have the following installed:

  • Node.js
  • npm (Node Package Manager)

Getting Started

To run the application locally, follow these steps:

  1. Clone the repository to your local machine:

    git clone https://github.com/HamzaRasheed26/React-Weather-App.git

  2. Navigate to the project directory: cd weather-application

  3. Install dependencies: npm install

  4. Create a .env file in the root directory of the project and add your OpenWeatherMap API key:

    REACT_APP_WEATHER_API=your-api-key

(Replace your-api-key with your actual API key obtained from OpenWeatherMap)

  1. Start the development server: npm start

  2. Open your web browser and visit http://localhost:3000 to view the application.

Usage

  • Enter the name of a city in the input field.
  • Click the "Submit" button to fetch and display weather information for the entered city.

Technologies Used

  • React
  • JavaScript
  • HTML/CSS
  • OpenWeatherMap API

Contributing

Contributions are welcome! If you find any bugs or have suggestions for improvement, please submit an issue or create a pull request.

Live Website link

https://weatherapp-hmzdev.netlify.app/

About

This Weather Application is a simple web application built with React that allows users to fetch and display weather information based on city names using the OpenWeatherMap API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published