Spaces:
Sleeping
Sleeping
Download start-dev.sh from kingune/framematch: direct link, hf CLI and curl.
- Browser
- Download file 750 Bytes
-
https://huggingface.co/spaces/kingune/framematch/resolve/main/start-dev.sh
- Command line
-
hf download hf://spaces/kingune/framematch/start-dev.sh
-
curl -L -o start-dev.sh https://huggingface.co/spaces/kingune/framematch/resolve/main/start-dev.sh
750 Bytes
| # 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 | |