forked from socioboard/Socioboard-5.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInstallatin.sh
47 lines (23 loc) · 1.77 KB
/
Installatin.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
42
43
# We need to update Folders case
# Un comment the Below lines to install packages in all Micro-services
# cd ./socioboard-api/User & npm install & cd ../Feeds & npm install & cd ../Common & npm install & cd ../Update & npm install & cd ../Publush & npm install & cd ../Notification & npm install & cd ..
# end of package install command
# Chat service will be added soon
# Setting up DataBase - Sequelize
# NODE_ENV is set to development as default.
# un comment the below line to set-up DataBase.
# cd ./socioboard-api/Common/Sequelize-cli & set NODE_ENV=development & npx sequelize-cli db:migrate & npx sequelize-cli db:seed --seed 20210303111816-initialize_application_informations.cjs
# end of DataBase configuration command
# If you want all in one simple click, Please use the following command.
# ! Note: Node ENV default is developement.
# Pre Requirements
NODE_ENV=development
# DataBase Requirements
# ! MySQL database
# ! mongo database
# All in one command ( Install Packages & setups Data Base )
cd ./socioboard-api/User & npm install & cd ../Feeds & npm install & cd ../Common & npm install & cd ../Update & npm install & cd ../Publush & npm install & cd ../Notification & npm install & cd ../Common/Sequelize-cli & set NODE_ENV=development & npx sequelize-cli db:migrate & npx sequelize-cli db:seed --seed 20210303111816-initialize_application_informations.cjs
# Once all are success
# To start services with pm2
npm i pm2 -g & set NODE_ENV=development & cd ./socioboard-api/User & pm2 user.server.js & cd ../Feeds & pm2 feeds.server.js & ../Publish & pm2 publish.server.js & cd ../Notification & pm2 notify.server.js & cd ../Update & pm2 update.server.js & pm2 status
# ! NOTE: For linux user use export NODE_ENV=developement inplace of set NODE_ENV=development