Web Application for DataTorrent Demos:
Demos run on Node.js. To run demo web server use start.sh
or launch application with Node.js:
$ node app.js
By default application will be available at http://localhost:3003 and will connect to DT Gateway at localhost:9090.
Please use config.js
or environment variables (start.sh
) for configuration (DT Gateway, Redis, MongoDB, etc.).
Applications are automatically discovered by name (to show stats like “Events/sec”). See the following settings in config.js
:
See web application source code web demos
Running Node.js as a daemon with forever
$ npm install forever -g $ forever start app.js $ forever list $ forever stop <uid>
Running Node.js on different port
$ PORT=3001 node app.js