This project was bootstrapped with Create React App.
- 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/
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
City search field has four validations.
- Required field validation with no input data
- City weather information not found
- Retrieve city information with different case search input
- Retrieve city information when city search input contains whitespace
To run the test execute:
npm run test
- React
- Sass
- PropTypes
- Jest
- Enzyme