HamzaRasheed26 / React-Weather-App

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.

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

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


Languages

Language:JavaScript 56.4%Language:CSS 21.9%Language:HTML 21.7%