A small client-side application (ReactJS) that provides dashboard for monitoring weather of several cities.
- Clone the project source code from GitHub.
- Open command prompt and cd to the project directory /react-weather-app.
- Run
npm install
to install the project dependencies. - Open the file src\App.js, insert the token and save.
- Api token to be obtained from OpenWeather.
- Run
npm start
to start the app in the development mode, please refer the details as followed.
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
- Enter the city name.
- Select the refresh interval in minutes.
- The refresh interval indicates the interval of fetching the latest weather data and update the city weather item.
- Each city has its refresh interval, so feel free to select a different interval for each city.
- To remove a city weather item from the weather dashboard, move the mouse onto the city weather item and click the trash button.
The content of this repository is licensed under a MIT License.