-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetupDev.txt
More file actions
28 lines (25 loc) · 804 Bytes
/
setupDev.txt
File metadata and controls
28 lines (25 loc) · 804 Bytes
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
Run the following commands to setup a server for Node and Anular
1 sudo apt-get update
2 sudo apt-get install build-essential libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip
3 sudo apt-get install git
4 git clone https://gitlab.com/saurav0988/CodeChef.git
6 curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
7 nvm install stable
8 npm install -g @angular/cli
9 cd CodeChef/
10 cd angweb/
11 npm install
12 cd ..
13 cd node_server/
14 npm install
15 cd
Running the server
1 cd angweb/
2 if development
- ng serve
if prod and ssl certificate is present
- ng build --prod
- node server.js
3 cd ..
4 cd node_server/
5 npm start