-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.sh
executable file
·41 lines (33 loc) · 1.35 KB
/
config.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
#!/usr/bin/env bash
echo "===================================================="
echo "Installing node dependences"
echo "===================================================="
npm install
# Install webpack global
echo "===================================================="
echo "Installing webpack global..."
echo "===================================================="
npm install webpack -g
# Iniciando config do Docker
echo "===================================================="
echo "Use password root to Docker configuration"
echo "===================================================="
sudo docker pull mongo
mkdir data
echo "===================================================="
echo "Folder created :)"
echo "===================================================="
# Roda o container de mongo
sudo docker run -p 27017:27017 -v $(pwd)/data:/data/db -d mongo
echo "===================================================="
echo "Mongo DB Up o//"
echo "===================================================="
echo "===================================================="
echo "Building application"
echo "===================================================="
npm run build
echo "===================================================="
echo "Starting application"
echo "===================================================="
npm run start
echo "App running in http://localhost:4200"