Git Product home page Git Product logo

hamzarasheed26 / react-weather-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.28 MB

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/

HTML 21.67% CSS 21.93% JavaScript 56.40%
ajax weather-api weather-app weather-app-react

react-weather-app's Introduction

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/

react-weather-app's People

Contributors

hamzarasheed26 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.