-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-dev.sh
More file actions
38 lines (29 loc) · 793 Bytes
/
start-dev.sh
File metadata and controls
38 lines (29 loc) · 793 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
#!/bin/bash
# Terminator Development Setup Script
echo "🚀 Starting Terminator development environment..."
# Start backend
echo "📡 Starting Go backend on port 8080..."
cd backend
go run main.go &
BACKEND_PID=$!
# Wait for backend to start
sleep 2
# Start frontend
echo "🌐 Starting React frontend on port 3000..."
cd ../web
npm start &
FRONTEND_PID=$!
echo "✅ Development servers started!"
echo "🔗 Backend API: http://localhost:8080"
echo "🔗 Frontend App: http://localhost:3000"
echo "🔗 Health Check: http://localhost:8080/health"
# Function to cleanup on exit
cleanup() {
echo "🛑 Stopping development servers..."
kill $BACKEND_PID $FRONTEND_PID 2>/dev/null
exit 0
}
# Set trap to cleanup on exit
trap cleanup SIGINT SIGTERM
# Wait for processes
wait