-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_windows.bat
More file actions
36 lines (30 loc) · 867 Bytes
/
start_windows.bat
File metadata and controls
36 lines (30 loc) · 867 Bytes
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
@echo off
title CoperVault Launcher
color 0A
echo ===================================================
echo CoperVault - Secure Local Drive
echo Lancement et Installation automatique...
echo ===================================================
echo.
:: Vérification de Node.js
where node >nul 2>nul
if %errorlevel% neq 0 (
echo [ERREUR] Node.js n'est pas installe !
echo Veuillez installer Node.js depuis https://nodejs.org/
pause
exit
)
echo [1/3] Installation des dependances...
if not exist "node_modules" (
call npm install
) else (
echo Dependances deja installees.
)
echo [2/2] Lancement de l'application (Mode Dev)...
echo L'application sera accessible sur http://localhost:3000
echo Ctrl+C pour arreter le serveur.
:: Ouvrir le navigateur après 5 secondes
timeout /t 5 >nul
start http://localhost:3000
call npm run dev
pause