Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 787 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 787 Bytes

viziot-server-2

ViZIot server version 2

A new server to serve for tcpdata monitor by IoT router

Server Address: https://viziot-server-2.herokuapp.com

Set Up Guide

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

Structures

  • 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.