]> git.digitality.be Git - pdw25-26/commitdiff
alerts server, update start-all.bat comments
authorSteph Ponzo <ponzo.stephane2@gmail.com>
Fri, 27 Feb 2026 20:03:22 +0000 (21:03 +0100)
committerSteph Ponzo <ponzo.stephane2@gmail.com>
Fri, 27 Feb 2026 20:03:22 +0000 (21:03 +0100)
Wallette/server/modules/alerts/server.js
Wallette/start-all.bat

index 572915fb80182dbf559b9a6d2244b0b36fe1e2e8..ac5764e26b633201020ef421acdebc46ceef0cf9 100644 (file)
@@ -123,3 +123,4 @@ httpServer.listen(PORT, () => {
 });
 
 export { alertsRepo, alertsService, io };
+
index 04f1710600c87d6e5c4630865c037163e8aec603..06429732cfa172db48b08bbb87694e1621910751 100644 (file)
@@ -3,11 +3,12 @@ REM =========================================================
 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
@@ -17,16 +18,16 @@ echo [Wall-e-tte] Demarrage des services...
 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
@@ -34,6 +35,14 @@ IF EXIST "%ROOT%server\modules\strategy\server.js" (
     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"
 
@@ -43,10 +52,13 @@ echo.
 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