metamaps--metamaps/realtime
2016-11-08 19:42:48 +00:00
..
global.js [WIP] keep client fresh with junto info globally (#791) 2016-10-21 09:29:04 -04:00
junto.js Comments were for non-redux scenario 2016-10-22 11:04:14 -04:00
map.js [WIP] keep client fresh with junto info globally (#791) 2016-10-21 09:29:04 -04:00
README.md Update README.md 2016-10-22 10:59:43 -04:00
realtime-server.js only remove user once they've left all maps 2016-11-08 19:42:48 +00:00
reducer.js only remove user once they've left all maps 2016-11-08 19:42:48 +00:00
rooms.js [WIP] keep client fresh with junto info globally (#791) 2016-10-21 09:29:04 -04:00
signal.js [WIP] keep client fresh with junto info globally (#791) 2016-10-21 09:29:04 -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:

npm install #creates node_modules directory
node realtime/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/realtime-server.js