-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathstart-application.sh
More file actions
executable file
·22 lines (20 loc) · 968 Bytes
/
start-application.sh
File metadata and controls
executable file
·22 lines (20 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
echo "Starting Wealth Builder Data Server"
echo "Prerequisites:"
echo "node and npm installations should be available"
if [ ! -e data-server/datasource.json ]
then
echo "=========== Creating Data for the Server =========== "
echo "{">> data-server/datasource.json
echo "\"recommendations\" : " >> data-server/datasource.json
cat data-server/recommendations.json >> data-server/datasource.json
echo ",\"investments\" : " >> data-server/datasource.json
cat data-server/oldinvestments.json >> data-server/datasource.json
echo "}">> data-server/datasource.json
echo "=========== Data creation complete =========== "
fi
nohup ./data-server/bin/index.js --watch data-server/datasource.json --port 3030 &
echo "*********** Wealth Builder Data Server Started *********** "
echo "*********** Starting Wealth Builder Application *********** "
cd open-wealth-manager
npm start
echo "*********** Wealth Builder Application Started *********** "