-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-services.sh
More file actions
executable file
·42 lines (34 loc) · 924 Bytes
/
build-services.sh
File metadata and controls
executable file
·42 lines (34 loc) · 924 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
39
40
41
42
#!/bin/bash
# Script to build all RetailShift application services
# Set error handling
set -e
echo "===== Building RetailShift Application Services ====="
# Navigate to project root directory
cd "$(dirname "$0")"
# Build Legacy Adapter Service (Clojure)
echo "Building Legacy Adapter Service..."
cd services/legacy-adapter
lein clean
lein deps
lein uberjar
cd ../..
# Build Inventory Service (Clojure)
echo "Building Inventory Service..."
cd services/inventory
lein clean
lein deps
lein uberjar
cd ../..
# Build Data Visualizer Frontend (React)
echo "Building Data Visualizer Frontend..."
cd services/data-visualizer/frontend
npm install
npm run build
cd ../../..
# Build Data Visualizer Backend (Node.js)
echo "Building Data Visualizer Backend..."
cd services/data-visualizer
npm install
cd ../..
echo "===== All services built successfully ====="
echo "You can now run deploy-services.sh to deploy to production"