This is the frontend repo for the environmetal sensor dashboard.
See also backend and sensor board code, or see it live with some sensor data from my living room.
- React
- React context for state management
- Eslint for linting
- ReCharts for chart display
Copy .env.example
over to env.local
and/or customize environment variables.
Run with yarn start
.
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.
Runs eslint
and prettier
and writes what they could fix to filesystem.
$ cp .env.example .env
$ docker-compose up -d
Will spin up a nginx container and copy the files into it. You should be able to access the frontend at the specified port.