ViZIot server version 2
A new server to serve for tcpdata monitor by IoT router
Server Address: https://viziot-server-2.herokuapp.com
Copy .env.example
to .env
, and put the MongoDB connection string to here.
MONGO_URI=<MONGO_URI>
Run command yarn install
to install dependencies.
To run the server:
./node_modules/.bin/forever -m 5 ./index.js
- The tcpData directory contains most of the network data.
- The file tcpData.da.js defines all the mongo queries to query data.
- The server use socket.io to communicate with the client side. The file socketio.js defines all the messageEmitters.