-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
Β·51 lines (41 loc) Β· 1.21 KB
/
start.sh
File metadata and controls
executable file
Β·51 lines (41 loc) Β· 1.21 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
#!/bin/bash
echo "π Starting Vector Project..."
PROJECT_ROOT="$HOME/Placement/Projects/Vector-Project"
# -----------------------------
# 1. Start Endee DB
# -----------------------------
echo "π¦ Starting Endee DB..."
if ! docker ps | grep -q 8080; then
docker run -d -p 8080:8080 -v /tmp/endee_data:/data --name endee_server endeeio/endee-server:latest
else
echo "Endee DB is already running."
fi
sleep 3
# -----------------------------
# 2. Start Backend (Konsole)
# -----------------------------
echo "βοΈ Starting Backend..."
konsole --hold -e bash -c "
cd $PROJECT_ROOT/backend;
source venv/bin/activate;
echo 'π₯ Backend running at http://localhost:8000';
PYTHONPATH=. uvicorn main:app --reload --port 8000
" &
sleep 2
# -----------------------------
# 3. Start Frontend (Konsole)
# -----------------------------
echo "π Starting Frontend..."
konsole --hold -e bash -c "
cd $PROJECT_ROOT/frontend;
echo 'π Frontend running at http://localhost:3000';
npm run dev
" &
# -----------------------------
# Done
# -----------------------------
echo ""
echo "β
Project Started!"
echo "π Frontend: http://localhost:3000"
echo "π§ Backend: http://localhost:8000"
echo "π¦ Endee DB: http://localhost:8080"