@echo off setlocal enabledelayedexpansion title WidgeTDC Startup echo. echo ================================================ echo WidgeTDC - Development Environment echo ================================================ echo. :: Check if Docker is running docker info >nul 2>&1 if %errorlevel% neq 0 ( echo [WARNING] Docker is not running! echo Starting without infrastructure containers... echo. goto :start_app ) :: Start infrastructure if not running echo [1/3] Checking infrastructure... docker ps --filter "name=widgetdc-postgres" --format "{{.Names}}" | findstr "widgetdc-postgres" >nul if %errorlevel% neq 0 ( echo Starting PostgreSQL, Redis, Neo4j... docker-compose -f docker-compose.infra.yml up -d echo Waiting for services to start... timeout /t 10 /nobreak >nul ) else ( echo Infrastructure already running ) :start_app echo. echo [2/3] Building shared packages... call npm run build:shared >nul 2>&1 echo Done echo. echo [3/3] Starting applications... echo. echo ================================================ echo Backend: http://localhost:3001 echo Frontend: http://localhost:5173 echo Neo4j: http://localhost:7474 echo Health: http://localhost:3001/health echo ================================================ echo. echo Press Ctrl+C to stop echo. call npm run dev