From the console, run:
npm install
npm start
in a different console window, run
npm run api
Create an application that shows weather and wind data for a chosen city:
- When the user opens the website, load a list of cities using the fetchCities function from api.ts
- When the cities are done loading, display them on the page
- When the user selects a city, load the weather data using the fetchWeather function from api.ts
- When the weather data is done loading, give the user the option of choosing between 2 different pages/views
- Page 1: Show the weather and weather description to the user
- Page 2: Show the wind speed and direction to the user
When any request is made, display some sort of loading state for the user until the data is successfully loaded
Notes:
Feel free to ask any questions
Don't worry about CSS
Don't worry about typescript, you can use any
if any errors come up
It's okay to use google