8000 GitHub - ershadul1/weather-app: A weather app built with React.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ershadul1/weather-app

Repository files navigation

Weather App

An app that shows the weather forecast for the next five days.

Project Description

This app fetches a 5-day weather forecast from the open weather map API and displays them on the screen. The temperature of a day is also shown in three hours intervals in a bar chart. Users can browse through the five weather cards using arrows. Each weather card contains the average temperature and date of that day.

Features

  • Switch unit between Celcius and Fahrenheit.
  • Select weather cards using arrows.
  • Bar chart of the temperatures throughout the day in three hours interval.
  • Weather card shows average temperature of the day and date.

Screenshot

Built With

  • React
  • Redux
  • HTML/CSS
  • Javascript
  • Create React App
  • Open Weather Map API
  • Material UI
  • React Testing Library
  • etc

Live Demo

To run the app locally

Prerequisites

  1. An internet browser
  2. npm
  3. react

Steps to follow

  1. Clone the repository to your local machine using git clone https://github.com/ershadul1/weather-app.git
  2. On your local machine, navigate to the folder using cd weather-app in your terminal.
  3. Run npm install for installing all the dependencies.
  4. Create a new file named .env in the root directory and add the following lines. Replace {OPEN WEATHER MAP API KEY} with an API KEY from - OPEN WEATHER MAP
REACT_APP_API_URL='https://api.openweathermap.org/data/2.5/forecast'
REACT_APP_API_KEY='{OPEN WEATHER MAP API KEY}'
  1. Run npm start to run the app on your local webserver.
  2. Visit http://localhost:3000/weather-app/ to run the app on your browser.

Steps to test

  1. Clone the repository to your local machine using git clone https://github.com/ershadul1/weather-app.git
  2. On your local machine, navigate to the folder using cd weather-app in your terminal.
  3. Run npm install for installing all the dependencies.
  4. Run npm test to start the test suit.

Contributions

There are two ways of contributing to this project:

  1. If you see something wrong or not working, please check the issue tracker section, if that problem you met is not in already opened issues then open the issue by clicking on the new issue button.

  2. If you have a solution to that, and you are willing to work on it, follow the below steps to contribute:

    1. Fork this repository
    2. Clone it on your local computer by running git clone https://github.com/ershadul1/weather-app.git Replace ershadul1 with the username you use on github
    3. Open the cloned repository which appears as a folder on your local computer with your favorite code editor
    4. Create a separate branch of the main branch,
    5. Write your codes that fix the issue you found
    6. Commit and push the branch you created
    7. Raise a pull request, comparing your new created branch with our original master branch here

Author

👤 Ershadul Rayhan

Show your support

Give a ⭐️ if you like this project!

About

A weather app built with React.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0