-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.txt
85 lines (47 loc) · 1.47 KB
/
install.txt
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
install git
--------------------------------------
apt-get install -y git
install mongodb
---------------------
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
update
sudo apt-get install -y mongodb-org
sudo service mongod start
install node
-----------------------
install nvm
-------------------
git clone https://github.com/creationix/nvm.git ~/.nvm && cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`
source ~/.nvm/nvm.sh
install stable version of node
-------------------------------
nvm install stable
nvm alias default stable
Install python
----------------------------------
apt-get install build-essential
apt-get install python3
apt-get install python-pip
Install dependencies for extraction tool
--------------------------------------
pip install beautifulsoup4
Install the project
-----------------------
git clone https://github.com/Daithi1/CCTL_Project.git
install node's dependencies
-------------------------------
front-end
----------------
cd "frontend"
npm install
back-end
----------------
cd "backend"
npm install
Run the project in the background
-----------------------------------
npm install -g forever
to start the frontend/backend
forever start api.js [port number]
forever start server.js [port number] [api url]