@echo off
echo Starting SkillMate in development mode...

REM Start Backend Debug Console (kontinuierliche Log-Ausgabe)
start debug-console.cmd

REM Wait a bit
timeout /t 3 /nobreak > nul

REM Start Frontend  
start "Frontend" cmd /k "cd frontend && npm run dev"

REM Start Admin Panel
start "Admin Panel" cmd /k "cd admin-panel && npm run dev"

echo.
echo SkillMate is starting...
echo.
echo Backend:  http://localhost:3005
echo Frontend: http://localhost:5173
echo Admin:    http://localhost:3006
echo.
echo Opening Admin Panel and Frontend in browser...
timeout /t 5 /nobreak > nul

start http://localhost:3006
timeout /t 2 /nobreak > nul
start http://localhost:5173