Skip to content

Latest commit

 

History

History
57 lines (50 loc) · 2.27 KB

README.md

File metadata and controls

57 lines (50 loc) · 2.27 KB

A react weather app ⛅ 🌦️ ⛈️ 🌨️ 🌤️ ## Demo

This is a daily weather forecast data app created using create-react-app and AccuWeather API https://developer.accuweather.com/ to get the weather data for a city and display it in a meaningful way. As I deployed this project on Netlify with free account, there is a limitation on the amount of call you can query in a day.

image

Task has been done:

  • Create a homepage that displays the a textfield asking users to enter the name of a city.
  • Fetch the weather data from AccuWeather API and show the weather information in a card once user pressed Enter and the name of the city is valid.
  • Show error messages to users if the weather data can't be fetched or when user enter an invalid input.
  • Divide the app into reusable and smaller components
  • Created an attractive front-end.
  • Deploy the app to Netlify.

Project structure

weather_app
│   .gitignore
│   package-lock.json
│   package.json
│   README.md
│
├───build
├───public
│       favicon.ico
│       index.html
│
└───src
    │   App.js
    │   index.css
    │   index.js
    │
    ├───assets
    │   └───imgs
    │
    └───components
            api.js
            Error.js
            Footer.js
            Header.js
            WeatherCard.js

Used API:

Used technologies:

  • React (... & useState hook)
  • JavaScript
  • HTML
  • CSS
  • React Bootstrap

More images from the app

image image