Skip to content

A weather forecasting frontend app developed using React.js

Notifications You must be signed in to change notification settings

kumaramit1947/weather-forecast-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather Forecast Template

Purpose : Displays a weather card for the searched city.

Search By : city name

Weather card content : Temperature in Celsius, Weather mood Forecast date and time, Location, Sunset time, Humidity, Atmospheric pressure, Wind speed

Default city : Varanasi

Weather API: https://api.openweathermap.org/

         *(The Secret API Key has been removed for security purpose, replace the redundant value with the actual Key)* 

Technology used: HTML, CSS, Javascript, React.js, JSON, API

Data: fetched from API


React components:

              1. Home.js:
                 -> Contains title, search box and Container.js
                 Parent: App.js
                 Children: Container.js
                 Props used: None 
              2. Container.js:
                 -> Contains the weather card's inner structure
                 Parent: Home.js
                 Children: None
                 Props used: Weather info object fetched from API , passed by Home.js

React Hooks: useState, useEffect

Method used to fetch data from API: fetch()

Icon used: Font-awesome v5


Future updates:

            1. Set current location as default city
            2. Use some good and relevant Weather icons
            3. Change the page styling according to the weather mood:
               Ex: Page should look little blur and smoked , if weather mood is Smog;
                   Sunrays should be seen if wether mood is Sunny;
                   Snowfall , if the weather mood is Snow

WeatherForecast

About

A weather forecasting frontend app developed using React.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published