Spaces:
Sleeping
Sleeping
File size: 750 Bytes
611725d | 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 | #!/bin/bash
# Start development servers for Shot Match
echo "Starting Shot Match development servers..."
# Start backend
echo "Starting backend server on http://localhost:8000"
cd backend
pip install -r requirements.txt > /dev/null 2>&1
uvicorn app.main:app --reload --port 8000 &
BACKEND_PID=$!
cd ..
# Wait for backend to start
sleep 2
# Start frontend
echo "Starting frontend server on http://localhost:5173"
cd frontend
npm run dev &
FRONTEND_PID=$!
cd ..
echo ""
echo "Shot Match is running!"
echo " Frontend: http://localhost:5173"
echo " Backend: http://localhost:8000"
echo ""
echo "Press Ctrl+C to stop both servers"
# Handle shutdown
trap "kill $BACKEND_PID $FRONTEND_PID 2>/dev/null" EXIT
# Wait for either process to exit
wait
|