forked from mozilla/BrowserQuest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
41 lines (25 loc) · 983 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
apt-get update
export DEBIAN_FRONTEND=noninteractive
apt-get -yq install git curl python build-essential libssl-dev git-core
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.0/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
nvm install 0.6.8
apt-get -yq install npm
nvm install 10.23.0
npm install [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] @gitterhq/websocket-server
mv node_modules/@gitterhq/websocket-server node_modules/websocket-server
rm -r node_modules/@gitterhq
git clone https://github.com/ColoradoStark/BrowserQuest.git
cd BrowserQuest/client
#The next line was necessary on AWS
#npm config set strict-ssl false
npm install --global [email protected]
nvm use 0.6.8
cd ..
node server/js/main.js &
#nvm use 10.23.0
#cd /
#http-server -p 80 ./BrowserQuest/client