@@ -72,6 +72,11 @@ function install_apps_dependencies() {
72
72
73
73
echo " ✅ Root dependencies installed."
74
74
echo " "
75
+
76
+ echo " Install all apps dependencies"
77
+ npm run ci:all
78
+ echo " ✔ All dependencies were downloaded and installed"
79
+ echo " -----------"
75
80
}
76
81
77
82
function setup_and_run_infrastructure() {
@@ -92,47 +97,11 @@ function setup_and_run_infrastructure() {
92
97
echo " Creating database"
93
98
94
99
# It drops and creates database then load the seed.
95
- (cd api && npm ci && npm run db:reset)
100
+ (cd api && npm run db:reset)
96
101
97
102
echo " ✅ Database created"
98
103
echo " "
99
104
100
- # Install dependencies for admin
101
- echo " Installing dependencies for admin"
102
- (cd admin && npm ci)
103
- echo " ✅ Dependencies for admin were installed"
104
- echo " "
105
-
106
- # Install dependencies for audit-logger
107
- echo " Installing dependencies for audit-logger"
108
- (cd audit-logger && npm ci)
109
- echo " ✅ Dependencies for audit-logger were installed"
110
- echo " "
111
-
112
- # Install dependencies for "certif"
113
- echo " Installing dependencies for certif"
114
- (cd certif && npm ci)
115
- echo " ✅ Dependencies for certif were installed"
116
- echo " "
117
-
118
- # Install dependencies for "junior"
119
- echo " Installing dependencies for junior"
120
- (cd junior && npm ci)
121
- echo " ✅ Dependencies for junior were installed"
122
- echo " "
123
-
124
- # Install dependencies for "mon-pix"
125
- echo " Installing dependencies for mon-pix"
126
- (cd mon-pix && npm ci)
127
- echo " ✅ Dependencies for mon-pix were installed"
128
- echo " "
129
-
130
- # Install dependencies for orga
131
- echo " Installing dependencies for orga"
132
- (cd orga && npm ci)
133
- echo " ✅ Dependencies for orga were installed"
134
- echo " -----------"
135
- echo " ✔ All dependencies were downloaded and installed"
136
105
137
106
}
138
107
@@ -145,7 +114,11 @@ function display_footer {
145
114
display_banner
146
115
display_header
147
116
verify_prerequesite_programs
148
- generate_environment_config_file
149
- setup_and_run_infrastructure
117
+ if [ " $1 " == " notvariables" ]; then
118
+ echo " Skipping environment variables generation"
119
+ else
120
+ generate_environment_config_file
121
+ fi
150
122
install_apps_dependencies
123
+ setup_and_run_infrastructure
151
124
display_footer
0 commit comments