NOTE: Debian and Debian-based system users may use the detailed step-by-step instructions on how-to to install node-xmpp-bosh, contained in DEBIAN_HOW_TO.md
-
Install node.js (possibly at /opt/node-VERSION so that you can have multiple versions). node-xmpp-bosh has been tested with node v0.4.x - v0.6.x
-
Set the node executable in the path (if not already set and also add to .bashrc):
$ export PATH=/opt/PATH-TO-NODE/bin/:$PATH
-
Set the NODE_PATH variable and add to .bashrc:
$ export NODE_PATH=/opt/PATH-TO-NODE/lib/node_modules/:$NODE_PATH
-
Test node:
$ node
-
Install npm: https://github.com/isaacs/npm
curl http://npmjs.org/install.sh | sh
-
If you are a developer, goto step [10]
-
The following command will install node-xmpp-bosh along with all its dependencies. Go to the directory where you want to install node-xmpp-bosh.
$ cd ~/ $ npm install node-xmpp-bosh
-
Run the proxy (test it)
$ node node_modules/node-xmpp-bosh/run-server.js
Now press Ctrl+C to exit (assuming it ran fine)
-
Report any bugs at https://github.com/dhruvbird/node-xmpp-bosh/issues. You are done!
-
These instructions are only for developers who want to get the latest version from git.
$ cd <your project directory>
-
$ git clone https://github.com/dhruvbird/node-xmpp-bosh
-
$ cd node-xmpp-bosh
-
Install all dependencies
$ npm install .
-
Set the executable flag on run-server.js:
$ chmod +x run-server.js
-
Test it out!
$ node run-server.js
Now press Ctrl+C to exit (assuming it ran fine)
- Goto step [9]