@echo off setlocal cd /d %~dp0\.. echo [1/4] 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/4] Starting YouTube sidecar on :8020 ... start "youtube-svc" cmd /c "cd /d %~dp0\..\youtube-svc && npm start" timeout /t 2 /nobreak >nul echo [3/4] Starting FastAPI on :8000 ... start "fastapi" cmd /c "cd /d %~dp0\..\backend && set DY_YOUTUBE_SVC_URL=http://127.0.0.1:8020 && python -m uvicorn app.main:app --host 127.0.0.1 --port 8000 --reload" timeout /t 2 /nobreak >nul echo [4/4] 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/_/ echo YT http://127.0.0.1:8020/health endlocal