-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
21 lines (21 loc) · 701 Bytes
/
Copy pathdeploy.sh
File metadata and controls
21 lines (21 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
GREEN='\033[0;32m'
echo -e "${GREEN} Deploying application..."
echo -e "${GREEN} Installing TypeScript, Angular CLI and NestJS CLI..."
npm install -g typescript
npm install -g @angular/cli
npm install -g @nestjs/cli
echo -e "${GREEN} Resetting SQLite Database..."
rm -f backend/notes-app
echo -e "${GREEN} Installing dependencies for Back-End..."
cd backend
npm install
echo -e "${GREEN} Building Back-End..."
npm run build
cd ../frontend
echo -e "${GREEN} Installing dependencies for Front-End..."
npm install
echo -e "${GREEN} Building Front-End..."
ng build --output-path=../backend/public
cd ../backend
echo -e "${GREEN} Starting Deployed App, running on http:localhost:3000..."
npm run start:prod