-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
38 lines (26 loc) · 670 Bytes
/
build.sh
File metadata and controls
38 lines (26 loc) · 670 Bytes
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
echo "Starting to build the application!"
echo "building server side..."
cd server
npm i --silent
npm run build
npm test
if [ $? -ne 0 ]; then
echo "Something is wrong with the server functionality... exiting"
exit 1
fi
cd ..
echo "Done building server side, moving to client"
echo "Building client side..."
cd client
npm i --silent
npm run build
npm test
if [ $? -ne 0 ]; then
echo "Something is wrong with the client functionality... exiting"
exit 1
fi
cd ..
echo "Done building the components! running the server..."
echo "==================================================="
echo "UI is avaliable on localhost:9898/apps"
node server/dist/main.js