-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
43 lines (36 loc) · 1.1 KB
/
Copy pathstart.bat
File metadata and controls
43 lines (36 loc) · 1.1 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
@echo off
REM =====================================================================
REM VibeDev - one-click start (Windows)
REM Usage: double-click start.bat (or run it from a terminal)
REM =====================================================================
setlocal
cd /d "%~dp0" REM always run from the vibedev folder
echo.
echo VibeDev - starting...
REM --- 1. Backend dependencies ---
if not exist "node_modules" (
echo ^> Installing backend dependencies...
call npm install
) else (
echo ^> Backend dependencies present
)
REM --- 2. Frontend dependencies ---
if not exist "client\node_modules" (
echo ^> Installing frontend dependencies...
call npm --prefix client install
) else (
echo ^> Frontend dependencies present
)
REM --- 3. Build the frontend (only first time) ---
if not exist "client\dist\index.html" (
echo ^> Building frontend...
call npm run build:client
) else (
echo ^> Frontend already built
)
REM --- 4. Start the server ---
echo ^> Starting server...
echo Open http://localhost:4000 in your browser
echo.
call npm start
endlocal