-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·36 lines (29 loc) · 681 Bytes
/
Copy pathstart.sh
File metadata and controls
executable file
·36 lines (29 loc) · 681 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
#!/bin/bash
set -e
echo "Killing previous instances..."
pkill -f "spring-boot:run" || true
pkill -f "vite" || true
sleep 2
echo "Building Java engine..."
cd packages/java/engine
mvn clean install
cd ../../..
echo "Installing frontend dependencies..."
cd apps/web/frontend
npm install
cd ../../..
echo "Starting backend server..."
cd apps/api/backend
mvn spring-boot:run &
BACKEND_PID=$!
cd ../../..
echo "Starting frontend dev server..."
cd apps/web/frontend
npm run dev &
FRONTEND_PID=$!
cd ../../..
echo ""
echo "✓ Backend running (PID: $BACKEND_PID)"
echo "✓ Frontend running (PID: $FRONTEND_PID)"
echo ""
echo "To stop servers, run: kill $BACKEND_PID $FRONTEND_PID"