douyinWEB/scripts/start.bat
eric 76afafa6c9 Initial commit: Douyin live monitor with sh2-aligned probe.
Next.js + FastAPI + PocketBase stack for room/session monitoring, cookie sync from sh2, and anti-risk polling defaults.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-08 09:03:00 -05:00

23 lines
656 B
Batchfile

@echo off
setlocal
cd /d %~dp0\..
echo [1/3] Starting PocketBase on :8090 ...
start "pocketbase" cmd /c "cd /d %~dp0\..\pb && pocketbase.exe serve --http=127.0.0.1:8090"
timeout /t 2 /nobreak >nul
echo [2/3] Starting FastAPI on :8000 ...
start "fastapi" cmd /c "cd /d %~dp0\..\backend && python -m uvicorn app.main:app --host 127.0.0.1 --port 8000 --reload"
timeout /t 2 /nobreak >nul
echo [3/3] Starting Next.js on :3000 ...
start "nextjs" cmd /c "cd /d %~dp0\..\frontend && npx --yes next dev --port 3000 --hostname 127.0.0.1"
echo.
echo Open http://127.0.0.1:3000
echo API http://127.0.0.1:8000/docs
echo PB http://127.0.0.1:8090/_/
endlocal