Weather App
features
- shows weather in your location
- tells you if you're having a great day by comparing the actual weather with your weather settings
- shows Warning message if you set extreme weather settings
- saves your settings to localstorage
- shows different background for day and night time
Description
This is a simple app that fetches weather data from Open Weather Map and compares it with user settings of a perfect day.
- upon init it checks the time of the day and sets the background based on it
- uses
lowdb
for localstorage - user can reset DB to default values
Tech details
- uses Create React App
- implemented on node
v10.15.3
on macOS Mojave,v10.14.6
yarn
lowdb
yarn start
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.
yarn test
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
TODO next
- make comparison treshholds settable in the UI
- write tests for state changes (not just init render)
- use immutable lib for db object handling instead of replying on `cloneDeep
- implement polling or refresh weather
- add
flow
types (really wanted to add it here)