Settings are stored in config.js.
Twitter Demo and Mobile Demo
config.web.webSocketUrl = 'ws://localhost:9090/pubsub';
Ads Dimensions Demo
config.adsdimensions.redis.host = 'localhost'; config.adsdimensions.redis.port = 6379;
Site Operations Demo
config.siteops.redis.host = 'localhost'; config.siteops.redis.port = 6379;
Machine Generated Data Demo
config.machine.redis.host = 'localhost'; config.machine.redis.port = 6379; config.machine.redis.dbIndex = 0;
Install dependencies:
$ npm install
Start Node.js server:
$ node app
Application will be available at http://localhost:3000
Running Node.js as a daemon with forever
$ npm install forever -g $ forever start app.js $ forever list $ forever stop <uid>
Running Node.js in the background with nohup
$ nohup node app &
Killing an app
$ ps -ef | grep "node app" $ kill -9 <PID>
Running Node.js on different port
$ PORT=3001 node app
Express Node.js web framework
node_redis Node.js Redis client
forever Node.js daemon/continuous running/fault tolerance