-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·30 lines (26 loc) · 932 Bytes
/
start.sh
File metadata and controls
executable file
·30 lines (26 loc) · 932 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
30
#!/bin/bash
# Movement Mapper Startup Script
cd /home/shaun/vc01/matter_logger
echo "Starting Backend API..."
cd backend
source ../venv/bin/activate
nohup uvicorn main:app --host 0.0.0.0 --port 8000 > ../backend.log 2>&1 &
echo "Backend started (PID: $!)"
echo "Starting Frontend..."
cd ../frontend
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nohup npm run dev -- --host 0.0.0.0 > ../frontend.log 2>&1 &
echo "Frontend started (PID: $!)"
echo ""
echo "✅ All services started!"
echo " - Backend API: http://localhost:8000"
echo " - Frontend Dashboard: http://localhost:5173"
echo " - Tapo sensors: Monitoring via native API"
echo ""
echo "Logs:"
echo " - Backend: tail -f backend.log"
echo " - Frontend: tail -f frontend.log"
echo ""
echo "Note: Matter Server (Docker) is optional and not started by this script."
echo " The system uses Tapo's native API for sensor monitoring."