@echo off
echo Starting Wedding Guest List Application...
echo.

echo [1/3] Starting PostgreSQL (make sure it's running)
timeout /t 2 /nobreak > nul

echo [2/3] Starting Backend Server...
start "Backend API" cmd /k "cd /d %~dp0backend && uvicorn main:app --reload"
timeout /t 3 /nobreak > nul

echo [3/3] Starting Frontend...
start "Frontend Dev Server" cmd /k "cd /d %~dp0frontend && npm run dev"

echo.
echo ========================================
echo Application is starting!
echo ========================================
echo.
echo Backend API: http://localhost:8000
echo API Docs: http://localhost:8000/docs
echo Frontend: http://localhost:5173
echo.
echo Press any key to close this window...
pause > nul
