-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.sh
More file actions
executable file
·57 lines (41 loc) · 1.14 KB
/
dev.sh
File metadata and controls
executable file
·57 lines (41 loc) · 1.14 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
54
55
56
57
#!/bin/bash
# Quant Master - fast dev startup (no dependency install)
set -e
echo "Starting Quant Master (dev mode)..."
echo ""
GREEN='\033[0;32m'
BLUE='\033[0;34m'
NC='\033[0m'
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cleanup() {
echo ""
echo "Shutting down servers..."
kill $BACKEND_PID 2>/dev/null || true
kill $FRONTEND_PID 2>/dev/null || true
exit 0
}
trap cleanup SIGINT SIGTERM
echo -e "${BLUE}Starting Backend Server...${NC}"
cd "$SCRIPT_DIR/backend"
if [ ! -d "venv" ]; then
echo "Missing backend venv. Run ./bootstrap.sh first."
exit 1
fi
source venv/bin/activate
uvicorn main:app --host 0.0.0.0 --port 8000 --reload --reload-dir . --reload-dir ../core &
BACKEND_PID=$!
echo -e "${GREEN}Backend started on http://localhost:8000${NC}"
echo ""
sleep 2
echo -e "${BLUE}Starting Frontend Server...${NC}"
cd "$SCRIPT_DIR/frontend"
if [ ! -d "node_modules" ]; then
echo "Missing frontend dependencies. Run ./bootstrap.sh first."
exit 1
fi
npm run dev &
FRONTEND_PID=$!
echo -e "${GREEN}Frontend started on http://localhost:5173${NC}"
echo ""
echo "Press Ctrl+C to stop all servers"
wait