-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·41 lines (36 loc) · 1.12 KB
/
Copy pathstart.sh
File metadata and controls
executable file
·41 lines (36 loc) · 1.12 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
#!/bin/bash
# Trayini.ai VDC Document Intelligence - Quick Start
echo "=================================="
echo "Trayini.ai VDC Document Intelligence"
echo "=================================="
echo ""
# Check if backend is already running
if curl -s http://localhost:5001/api/health > /dev/null 2>&1; then
echo "Backend is already running on port 5001"
else
echo "Starting backend on port 5001..."
python3 backend/app.py > backend.log 2>&1 &
sleep 10
if curl -s http://localhost:5001/api/health > /dev/null 2>&1; then
echo "Backend is up!"
else
echo "Backend failed to start. Check backend.log"
exit 1
fi
fi
echo ""
echo "Seeding demo data..."
python3 seed_demo.py
echo ""
echo "Starting frontend server on port 8080..."
cd frontend && python3 -m http.server 8080 > ../frontend.log 2>&1 &
echo "Frontend is up!"
echo ""
echo "=================================="
echo "VDC Document Intelligence is LIVE"
echo "=================================="
echo "Backend: http://localhost:5001"
echo "Frontend: http://localhost:8080"
echo ""
echo "Open your browser to http://localhost:8080"
echo ""