-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.sh
45 lines (34 loc) · 1.22 KB
/
start.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
44
45
#!/bin/bash
# ANSI color codes
GRE='\033[0;32m'
RED='\033[0;31m'
MAG='\033[0;35m'
CYA='\033[0;36m'
NC='\033[0m'
# Change directory to api
cd api
# Start Kaizen Profile API
echo -e "${MAG}Starting ${GRE}Kaizen Profile API{$MAG} on port 8079${NC}"
nohup java -jar kaizen-profile-api.jar &
# Start Narlock Habit API
echo -e "${MAG}Starting ${GRE}Narlock Habit API{$MAG} on port 8089${NC}"
nohup java -jar narlock-habit-api.jar &
# Start Narlock Water Track API
echo -e "${MAG}Starting ${GRE}Narlock Water Track API{$MAG} on port 8083${NC}"
nohup java -jar narlock-water-track-api.jar &
# Start Narlock Weight Track API
echo -e "${MAG}Starting ${GRE}Narlock Weight Track API{$MAG} on port 8081${NC}"
nohup java -jar narlock-weight-track-api.jar &
# Start Narlock Weight Track API
echo -e "${MAG}Starting ${GRE}Narlock Checklist Track API{$MAG} on port 8085${NC}"
nohup java -jar narlock-checklist-api.jar &
# Start Kaizen GraphQL API
echo -e "${MAG}Starting ${GRE}Narlock GraphQL API{$MAG} on port 8080${NC}"
nohup java -jar kaizen-graphql-api.jar &
# Change directory to KaizenLAN server
cd ../KaizenLAN
# Start KaizenLAN
echo -e "${MAG}Starting ${GRE}Kaizen LAN{$MAG} on port 3000${NC}"
nohup node server.js &
# Detach from terminal
exit