REM WALL-E-TTE - Démarrage de tous les micro-services
REM NE REQUIERT PAS de droits administrateur
REM =========================================================
-REM Ouvre 4 terminaux :
-REM 1) price-service (port 3001)
-REM 2) alerts-service (port 3003)
-REM 3) gateway (port 3000)
-REM (strategy-service ignoré s'il n'existe pas)
+REM Ouvre 5 terminaux :
+REM 1) price-service (port 3001)
+REM 2) alerts-service (port 3003)
+REM 3) wallet-service (port 3004)
+REM 4) strategy-service (port 3002)
+REM 5) gateway (port 3000)
REM =========================================================
SET ROOT=%~dp0
REM ─── PRICE SERVICE (port 3001) ───────────────────────────
start "price-service :3001" cmd /k "cd /d %ROOT%server && echo [price-service] Demarrage... && node --experimental-vm-modules modules/price/server.js"
-REM Petite pause pour laisser le service démarrer
+REM pause pour laisser le service démarrer
timeout /t 2 /nobreak >nul
REM ─── ALERTS SERVICE (port 3003) ──────────────────────────
start "alerts-service :3003" cmd /k "cd /d %ROOT%server && echo [alerts-service] Demarrage... && node modules/alerts/server.js"
-REM Petite pause
+REM pause
timeout /t 2 /nobreak >nul
-REM ─── STRATEGY SERVICE (port 3002) ─ optionnel ────────────
+REM ─── STRATEGY SERVICE (port 3002) ─────────────
IF EXIST "%ROOT%server\modules\strategy\server.js" (
start "strategy-service :3002" cmd /k "cd /d %ROOT%server && echo [strategy-service] Demarrage... && node modules/strategy/server.js"
timeout /t 2 /nobreak >nul
echo [strategy-service] Non trouve - le gateway retournera 502 pour /api/strategy/*
)
+REM ─── WALLET SERVICE (port 3004) ──────────────────────────
+IF EXIST "%ROOT%server\modules\wallet\server.js" (
+ start "wallet-service :3004" cmd /k "cd /d %ROOT%server && echo [wallet-service] Demarrage... && node modules/wallet/server.js"
+ timeout /t 2 /nobreak >nul
+) ELSE (
+ echo [wallet-service] Non trouve - le gateway retournera 502 pour /api/wallets/*
+)
+
REM ─── GATEWAY (port 3000) ─────────────────────────────────
start "gateway :3000" cmd /k "cd /d %ROOT%gateway && echo [gateway] Demarrage... && node gateway.js"
echo Gateway : http://localhost:3000
echo Price : http://localhost:3001
echo Alerts : http://localhost:3003
+echo Wallet : http://localhost:3004
echo.
echo Tests rapides :
echo curl http://localhost:3000/api/gateway/health
echo curl http://localhost:3000/api/price/current?pair=BTC/EUR
echo curl http://localhost:3000/api/alerts?userId=1
+echo curl http://localhost:3000/api/alerts?userId=user-123
+echo curl http://localhost:3000/api/wallets?userId=user-123
echo.
pause