Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 89 lines (60 sloc) 1.89 kb
5ee94d8 Obsolete links changed.
Valérian Saliou authored
1 ## Installing node-xmpp-bosh
2
3
3049704 @dhruvbird Update link to DEBIAN_HOW_TO.TXT and wrap columns
authored
4 NOTE: Debian and Debian-based system users may use the detailed
5 step-by-step instructions on how-to to install node-xmpp-bosh,
a563846 @dhruvbird Rename DEBIAN_HOW_TO.TXT to DEBIAN_HOW_TO.md
authored
6 contained in [DEBIAN_HOW_TO.md](https://github.com/dhruvbird/node-xmpp-bosh/blob/master/DEBIAN_HOW_TO.md)
5ee94d8 Obsolete links changed.
Valérian Saliou authored
7
8 1. Install [node.js](http://nodejs.org/) (possibly at
9 /opt/node-VERSION so that you can have multiple
10 versions). node-xmpp-bosh has been tested with node v0.4.x - v0.6.x
11
12 2. Set the node executable in the path (if not already set and also
13 add to .bashrc):
14
15 ```
16 $ export PATH=/opt/PATH-TO-NODE/bin/:$PATH
17 ```
18
19 3. Set the NODE_PATH variable and add to .bashrc:
20
21 ```
22 $ export NODE_PATH=/opt/PATH-TO-NODE/lib/node_modules/:$NODE_PATH
23 ```
24
25 4. Test node:
26
27 ```
28 $ node
29 ```
30
31 5. Install npm: https://github.com/isaacs/npm
32
33 ```
34 curl http://npmjs.org/install.sh | sh
35 ```
36
37 6. If you are a developer, goto step [10]
38
39 7. The following command will install node-xmpp-bosh along with all
40 its dependencies. Go to the directory where you want to install
41 node-xmpp-bosh.
42
43 ```
44 $ cd ~/
45 $ npm install node-xmpp-bosh
46 ```
47
48 8. Run the proxy (test it)
49
50 ```
51 $ node node_modules/node-xmpp-bosh/run-server.js
52 ```
53 Now press Ctrl+C to exit (assuming it ran fine)
54
3049704 @dhruvbird Update link to DEBIAN_HOW_TO.TXT and wrap columns
authored
55 9. Report any bugs at https://github.com/dhruvbird/node-xmpp-bosh/issues.
56 You are done!
5ee94d8 Obsolete links changed.
Valérian Saliou authored
57
3049704 @dhruvbird Update link to DEBIAN_HOW_TO.TXT and wrap columns
authored
58 10. These instructions are only for developers who want to get the
59 latest version from git.
5ee94d8 Obsolete links changed.
Valérian Saliou authored
60
61 ```
62 $ cd <your project directory>
63 ```
64
65 11. ```$ git clone https://github.com/dhruvbird/node-xmpp-bosh```
66
67 12. ```$ cd node-xmpp-bosh```
68
69 13. Install all dependencies
70
71 ```
72 $ npm install .
73 ```
74
75 14. Set the executable flag on run-server.js:
76
77 ```
78 $ chmod +x run-server.js
79 ```
80
81 15. Test it out!
82
83 ```
84 $ node run-server.js
85 ```
86 Now press Ctrl+C to exit (assuming it ran fine)
87
88 16. Goto step [9]
Something went wrong with that request. Please try again.