App is now available at WeatherRun
WeatherRun is the app providing users with current air quality and weather data and provides clothes recommendations based on that data.
- User can type in a city name into the search box on the search page.
- 5 last searches are displayed on the search page for returning users.
- User can press the "Location arrow" button to get location from device geolocation ( user have to allow for location services ).
- When user presses search button or return keyboard key or one of remembered searches, site redirects to result page.
- When user presses geolocation button user location is acquired and passed to the fetch function which gets data for location.
- Result Page displays current weather and air quality, 5-day forecast and recommended running clothes.
- User can switch between light and dark mode, choice is applied to all pages and is saved in localStorage, so it is remembered for the next visit.
- User can display data sources by clicking info button in bottom right corner.
All data that need to be saved are stored in localStorage.
- When there is no match found for user search, the "City not found, please try again" message is displayed.
- When there is no URL match, "Page not found" message is displayed.
- APIs:
- Technologies:
This project was bootstrapped with Create React App.
In the project directory, you can run:
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.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified, and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.