there are 2 servers to run
-
tower server
cd tower
npm i
npm run dev -
main server
cd server
npm i
npm run dev
tower
GET http://localhost:2000/tower to publish a single sensor data on RabbitMQ
GET http://localhost:2000/tower/test to publish sensor data form json file on RabbitMQ to create 3rd anomaly case
GET http://localhost:2000/tower/disconnect to disconnect channel from RabbitMQ
main server
GET http://localhost:4000/sensor to get all sensor reading with/without anomalies
GET http://localhost:4000/sensor/anomalies to get sensor reading with anomalies
DELETE http://localhost:4000/sensor to delete all sensor readings