Files

22 lines
505 B
Batchfile

@echo off
rem Dev mode: backend (:8000) in a new window + Vite dev server (:5173).
rem Open http://localhost:5173 - Vite proxies /api to the backend.
setlocal
cd /d "%~dp0"
echo [1/2] uv sync
call uv sync
if errorlevel 1 exit /b 1
if exist "frontend\node_modules" goto dev
pushd frontend
call npm install
if errorlevel 1 exit /b 1
popd
:dev
echo [2/2] starting backend (:8000) in a new window, then Vite dev (:5173)
start "PVideoDl backend" cmd /k "uv run python -m app.main"
cd frontend
npm run dev