algospaced-dsa / run_app.bat
iamfebin's picture
Configure AlgoSpaced for Hugging Face Spaces deployment
aaa634c
Raw
History Blame Contribute Delete
591 Bytes
@echo off
echo Starting AlgoSpaced application stack...
:: Start the FastAPI backend in a new window
echo Launching FastAPI server...
start "AlgoSpaced Backend" cmd /c ".\venv\Scripts\uvicorn main:app --reload --host 0.0.0.0 --port 8000"
:: Start the React Vite frontend in a new window
echo Launching React frontend...
start "AlgoSpaced Frontend" cmd /c "cd algospaced-ui && npm run dev"
:: Wait for 3 seconds
echo Waiting for servers to initialize...
timeout /t 3 /nobreak >nul
:: Launch default browser
echo Opening browser...
start http://localhost:5173
echo All services launched!