- Go to
/frontend - Run
npm install - Once installed, run
npm start - If the browser is not automatically started. Access the application through
localhost:3000
- Go to
/backend - Run
npm install - In a separate terminal, run
node evalServer.jsto start the evaluation server - In a separate terminal, run
node sensorServer.jsto start the sensor server - In a separate terminal, run
node index.jsto start the HTTP REST endpoints - Go to /backend/socket and run
node dashboardserver.pyto start the dashboard server (after filling up your credentials)
- Go to
/backend/db/initand runnode dbInit.js - When the sensor data and evaluation data are received, it automatically updates the database.
- Go to
/backend/ - In a separate terminal, run
node evalServer.jsto start the evaluation server - In a separate terminal, run
node sensorServer.jsto start the sensor server - In a separate terminal, run
node index.jsto start the HTTP REST endpoints - Go to
backend/socket - In a separate terminal, run
node endpoint.jsto start the simulated endpoint to receive data - In a separate terminal, run
node dancerClient.jsto initialize dancers in the frontend - In a separate terminal, run
node sensorClient.jsto simulate streaming of data
- Under root directory, the file is divided into
frontendandbackend - under
frontend/src/componentscontains all the React components for the frontend - Under
/backendcontains:index.jsto start the HTTP REST endpointsevalServer.jsto start the evaluation server that receives evaluation data from the dashboard server and send it to the frontendsensorServer.jsto start the sensor server that receives sensor data from the dashboard server and send it to the frontend
/backend/socketcontains:dashboardserver.pyto start the dashboard server that receives sensor data and evaluation data (not for simulation)endpoint.jsto simulate a socket endpoint (if want to simulate an endpoint to be sent to theevalServer.jsandsensorServer.js)dancerClient.jsto initialize the dancers in the frontendevalClient.jsto simulate sending evaluation data toendpoint.jssensorClient.jsto simualte sending sensor data toendpoint.js
/backend/routescontains the routes / endpoint to access the statistics/backend/controllerscontains the controller to access the statistics from MongoDB/backend/dbcontains the DB related codes such as init, models and queries