Skip to content

Built with React (hooks), styled with Sass(scss). Displays data from OpenWeather API; three days forecast, every three hours interval. Save up to three cities in Local Storage for fast access.

hugCarvalho/weather_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather App with 3 days forecast

Displays weather data from OpenWeather API for the present day and for the next 2 days for every 3 hours.

Live: https://awesome-payne-8bf6bd.netlify.app/ (ctrl + click to open in a new window)

Project specs

Built with React HOOKS, styled with SASS(scss)

Hooks used

  • useState
  • useEffect
  • useReducer
  • useContext
3rd party used:
  • Moment
  • Tippy
  • React-spinners

App functionalities

  • search for a city to display the weather forecast
  • display weather forecast for present day and next 2 days:
    • every 3 hours option
    • temperature (actual + real feel)
    • wind speed + wind direction (cardinal points + arrow pointer)
  • save cities for fast access (up to 3 cities) in local storage
  • set a city to load at startup

Verification:

  • empty input + not valid city (used API city not found error response)
  • save city menu logic (diverse)

About

Built with React (hooks), styled with Sass(scss). Displays data from OpenWeather API; three days forecast, every three hours interval. Save up to three cities in Local Storage for fast access.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published