Mercurial > hg > nodescore
comparison INSTALL @ 2:c92a73b81c80
installation instructions added
author | tzara <rc-web@kiben.net> |
---|---|
date | Wed, 04 Jul 2012 10:11:27 +0000 |
parents | |
children | 28812ea7d941 |
comparison
equal
deleted
inserted
replaced
1:7798c5b91053 | 2:c92a73b81c80 |
---|---|
1 ////////////////////////////////// | |
2 // NODESCORE SERVER INSTALLATION | |
3 ////////////////////////////////// | |
4 | |
5 // installation for server running | |
6 // debian stable or testing OS | |
7 // other systems see here: | |
8 // https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager | |
9 | |
10 ////////////////////////////////// | |
11 | |
12 ////////////////////////////////// | |
13 // get nodejs dependencies | |
14 | |
15 apt-get update | |
16 apt-get install git-core curl build-essential openssl libssl-dev | |
17 | |
18 ////////////////////////////////// | |
19 // grab and compile from source | |
20 | |
21 mkdir -p /tmp/build/node && cd /tmp/build/node | |
22 git clone https://github.com/joyent/node.git . | |
23 git checkout v0.6.7 | |
24 | |
25 ./configure --openssl-libpath=/usr/lib/ssl | |
26 make | |
27 make test | |
28 make install | |
29 node -v | |
30 | |
31 ////////////////////////////////// | |
32 // get nodescore dependencies | |
33 // the node_modules dir should life in the require.path | |
34 // ~/ | |
35 | |
36 npm install socket.io | |
37 npm install node-static | |
38 npm install xmlhttprequest | |
39 npm install jsdom | |
40 npm install jQuery | |
41 | |
42 ////////////////////////////////// | |
43 // get nodescore | |
44 | |
45 | |
46 ////////////////////////////////// | |
47 //start server | |
48 | |
49 | |
50 cd nodescore | |
51 node nodescore.js |