Skip to content

nepesovparahat/weather-forecast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather Forecast App

Find the current weather forecast for any city or location in the world for 5 days with this simple little web app.

Project : Live Demo


Screenshots Weather App

Screenshot from 2021-04-16 18-57-53


Technologies

Builded with :


Project Procedure

In my process of learning ReactJS, I always make a new application to add information to my knowledge and to consolidate that knowledge practically. Based on these, I made a small weather forecast application. This app has helped me gain important information about ReactJS and learn where and how to use it. For example, it led me to learn more about the props used in react. In this project, used the most used axios for HTTP queries, and the API address of OpenWeatherMap, which displays a 5-day forecast to display weather forecast information. When it comes to the design of the application, pure css was used. Furthermore, react-styles-hook i used for animation and css operator in the input area.


Environment Variables

How to run the application locally:

  • Go to OpenWeatherMap and sign up to get a free API key.
  • Next, you will need to set your environment variables and secret keys like API KEYS, which will be ignored by git. To do this, go to the project root directory and create an .env file.
  • Add REACT_APP_API_KEY = YOUR_API_KEY line to the file. This will allow you to access API_KEY as a global variable from anywhere on the client. .env the file is already set to .gitignor and will be ignored by git.


Setup Project :

$ cd weather-forecast
$ npm install
$ npm start