-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.sh
More file actions
executable file
·53 lines (43 loc) · 1.09 KB
/
dev.sh
File metadata and controls
executable file
·53 lines (43 loc) · 1.09 KB
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
46
47
48
49
50
51
52
53
#!/bin/bash
# Start both backend and frontend in development mode
cd "$(dirname "$0")"
echo "========================================="
echo " Starting Development Servers"
echo "========================================="
echo ""
# Function to cleanup background processes on exit
cleanup() {
echo ""
echo "Shutting down servers..."
kill $BACKEND_PID $FRONTEND_PID 2>/dev/null
exit
}
trap cleanup SIGINT SIGTERM
# Start backend in background
echo "Starting backend server..."
cd backend
./start.sh &
BACKEND_PID=$!
cd ..
# Wait a bit for backend to start
sleep 2
# Start frontend in background
echo "Starting frontend server..."
cd frontend
./start.sh &
FRONTEND_PID=$!
cd ..
echo ""
echo "========================================="
echo " ✅ Servers running!"
echo "========================================="
echo ""
echo " Frontend: http://localhost:5173"
echo " Backend: http://localhost:8000"
echo " API Docs: http://localhost:8000/docs"
echo ""
echo " Press Ctrl+C to stop all servers"
echo "========================================="
echo ""
# Wait for background processes
wait