Skip to content

prazink/weather_forecast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather Forecast App

This project was bootstrapped with Create React App.

Instructions to run the application

  • Clone the solution
    git clone https://github.com/prazink/weather_forecast
  • Open in Visual Studio Code or preferred code editor

  • Execute the following code in terminal

    npm install

    npm run build

    npm run start

Navigate to http://localhost:3000/

Application running

Input the Australian city's name and hit enter or Press on Get weather button

Now the output will show the city's weather data from data.js file

Show city weather successfully

Validation

City search field has four validations.

  1. Required field validation with no input data

No input city name

  1. City weather information not found

City weather info not found

  1. Retrieve city information with different case search input

City weather found

  1. Retrieve city information when city search input contains whitespace

City weather info not found

Test

To run the test execute:

    npm run test

Run test results

Packages used

  1. React
  2. Sass
  3. PropTypes
  4. Jest
  5. Enzyme

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published