-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·29 lines (23 loc) · 759 Bytes
/
Copy pathstart.sh
File metadata and controls
executable file
·29 lines (23 loc) · 759 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
#!/bin/bash
# Start both backend and frontend dev servers
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
echo "=== Starting CalDAV Task Manager ==="
# Start Django backend
echo "[backend] Starting Django on http://localhost:8000 ..."
cd "$SCRIPT_DIR/backend"
source venv/bin/activate
python manage.py runserver 8000 &
BACKEND_PID=$!
# Start Vue frontend
echo "[frontend] Starting Vite dev server on http://localhost:5173 ..."
cd "$SCRIPT_DIR/frontend"
npm run dev &
FRONTEND_PID=$!
echo ""
echo " Backend: http://localhost:8000/api/"
echo " Frontend: http://localhost:5173/"
echo ""
echo "Press Ctrl+C to stop both servers."
# Wait and clean up on exit
trap "echo 'Stopping...'; kill $BACKEND_PID $FRONTEND_PID 2>/dev/null" INT TERM
wait