Repository navigation
Expand file tree
/
Copy pathstart.bat
More file actions
54 lines (45 loc) Β· 1.93 KB
/
Copy pathstart.bat
File metadata and controls
54 lines (45 loc) Β· 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@echo off
:: βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
:: Cave & Vigne β DΓ©marrage rapide Windows
:: Double-cliquez sur ce fichier pour lancer l'application
:: βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
title Cave ^& Vigne β Launcher
color 06
echo.
echo ββββββββββββββββββββββββββββββββββββββββββββ
echo β Cave ^& Vigne β DΓ©marrage β
echo ββββββββββββββββββββββββββββββββββββββββββββ
echo.
:: VΓ©rifier Node.js
where node >nul 2>&1
if %errorlevel% neq 0 (
echo [ERREUR] Node.js non trouvΓ© !
echo Lancez d'abord : setup-windows.ps1
pause
exit /b 1
)
:: VΓ©rifier que les .env existent
if not exist "backend\.env" (
echo [ERREUR] backend\.env manquant !
echo Lancez d'abord : setup-windows.ps1
pause
exit /b 1
)
echo DΓ©marrage du backend (port 3001)...
start "Cave ^& Vigne β Backend" cmd /k "cd /d %~dp0backend && echo Backend Cave ^& Vigne && npm run dev"
:: Attendre 3 secondes que le backend dΓ©marre
timeout /t 3 /nobreak >nul
echo DΓ©marrage du frontend (port 3000)...
start "Cave ^& Vigne β Frontend" cmd /k "cd /d %~dp0frontend && echo Frontend Cave ^& Vigne && npm start"
:: Attendre 5 secondes puis ouvrir le navigateur
echo Ouverture du navigateur dans 6 secondes...
timeout /t 6 /nobreak >nul
start "" "http://localhost:3000"
echo.
echo β
Cave ^& Vigne est lancΓ© !
echo Backend : http://localhost:3001
echo Frontend : http://localhost:3000
echo.
echo Fermez les deux fenΓͺtres de terminal pour arrΓͺter.
echo.
pause