This is the frontend react web app for the sensor dashboard.
The web app is hosted at https://ad-sensor-dash.herokuapp.com.
Git Repository for backend: https://github.com/devAdhiraj/sensor-dash-backend
Git repository for device code: https://github.com/devAdhiraj/Sensor-dash-device-code\
The web app is optimized and uses a service-worker, which enables it to be downloaded on android devices.
The frontend uses APIs to fetch and query data. The frontend uses the Recharts library to create graphs to visualize the data.
The admin page uses a login form which is authenticated using a custom login API. The login API returns a JWT token which is stored in an HTTP Only cookie to persist the session. The JWT and the cookie stay valid for 40 mins after issue time.
Once logged in, the admin page provides access to add and delete data entries. The token will also be used when the user makes add/delete requests to verify the user has access to perform these actions.