-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-dev.bat
More file actions
25 lines (19 loc) · 707 Bytes
/
Copy pathrun-dev.bat
File metadata and controls
25 lines (19 loc) · 707 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
@echo off
REM Caption Forge - development launcher. Runs the FastAPI backend (uvicorn,
REM auto-reload) and the Vite dev server (HMR, proxies /api and /ws to the
REM backend) side by side. Open http://127.0.0.1:5173 for the live front-end.
setlocal
title Caption Forge (dev)
if not exist ".\venv\Scripts\activate.bat" (
echo Virtual environment not found. Run install.bat first.
pause
exit /b 1
)
call ".\venv\Scripts\activate.bat"
echo Starting FastAPI backend (uvicorn --reload) on port 7776...
start "Caption Forge API" cmd /k python -m uvicorn server.main:app --host 127.0.0.1 --port 7776 --reload
echo Starting Vite dev server on port 5173...
pushd web
call npm run dev
popd
endlocal