the-tip-top-backend/restart-all.bat
2025-11-17 23:47:54 +01:00

32 lines
862 B
Batchfile

@echo off
echo ======================================
echo REDEMARRAGE COMPLET
echo ======================================
echo.
echo Etape 1: Arret de tous les processus Node.js...
taskkill /F /IM node.exe 2>nul
if %errorlevel% equ 0 (
echo OK: Processus arretes
) else (
echo INFO: Aucun processus a arreter
)
timeout /t 3 /nobreak >nul
echo.
echo Etape 2: Demarrage du backend...
echo.
start "Backend" cmd /k "cd /d C:\Users\LENOVO\Back\the-tip-top-backend && npm start"
timeout /t 3 /nobreak >nul
echo.
echo Etape 3: Demarrage du frontend...
echo.
start "Frontend" cmd /k "cd /d C:\Users\LENOVO\front\the-tip-top-frontend && npm run dev"
echo.
echo ======================================
echo DEMARRAGE TERMINE
echo ======================================
echo.
echo Backend: http://localhost:4000
echo Frontend: http://localhost:3004
echo.
pause