Frontend: http://sinedata-frontend.herokuapp.com/
Backend: http://sinedata-backend.herokuapp.com/
Within ./backend:
- Create ".env": copy
env-templateand rename to.env - Install dependencies:
npm i - Start dev server:
npm run buildStart
Within ./frontend:
- Create ".env": copy
env-templateand rename to.env - Install dependencies:
npm i - Start dev server:
npm run start
If you used the .env defaults, the backend will be at http://localhost:8000 and the frontend at http://localhost:3000
- Using
Reduxto save data from the backend - Using
D3to draw the sine data in the graph. Graph is responsive - Using
@tanstack/react-tableto render the table. Table is responsive - Using
Jestto testreact&redux - Has a retry mechanism for fetching graph & table data. Notifies user of status & error. NOTE: I deployed the app using Heroku so it's useful for cold starts
- While the server is running it logs the sine data to the filesystem. The logs can be accessed via a
GETto/ - Websockets provides realtime updates for the graph