metamaps--metamaps/realtime
2016-10-21 00:59:02 -04:00
..
global.js push state to client 2016-10-21 00:59:02 -04:00
junto.js push state to client 2016-10-21 00:59:02 -04:00
map.js push state to client 2016-10-21 00:59:02 -04:00
README.md dos2unix on the whole repo 2016-02-05 11:43:15 +08:00
realtime-server.js push state to client 2016-10-21 00:59:02 -04:00
reducer.js push state to client 2016-10-21 00:59:02 -04:00
rooms.js restructure realtime server for clarity (#780) 2016-10-18 20:29:21 -04:00
signal.js restructure realtime server for clarity (#780) 2016-10-18 20:29:21 -04:00

Node.js realtime server

To run the server, you need to install the dependencies and run the server. Please ensure you have followed the OS-specific instructions in doc/ to install NodeJS. Once you have node, then you can proceed to install the node packages for the realtime server:

cd realtime
npm install #creates node_modules directory
node realtime-server.js

That's it!

To run the server as a daemon that will be re-run if it crashes, you can use the forever node package.

sudo npm install -g forever
forever start realtime-server.js