-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_character_sheet_app.bat
More file actions
53 lines (38 loc) · 934 Bytes
/
Copy pathstart_character_sheet_app.bat
File metadata and controls
53 lines (38 loc) · 934 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
@echo off
setlocal
cd /d "%~dp0"
echo [System] Clearing zombie node processes...
echo ============================================
echo AI Character Sheet Maker - Starting...
echo ============================================
where node >nul 2>nul
if errorlevel 1 goto NODE_MISSING
where npm >nul 2>nul
if errorlevel 1 goto NPM_MISSING
if not exist node_modules (
echo [INFO] node_modules not found. Installing dependencies...
call npm install
)
if not exist node_modules goto INSTALL_ERROR
echo [INFO] Launching development server...
call npm run dev -- --open
if errorlevel 1 goto RUN_ERROR
pause
exit /b
:NODE_MISSING
echo [ERROR] Node.js is not installed.
echo Please install Node.js from https://nodejs.org/
pause
exit /b
:NPM_MISSING
echo [ERROR] npm is not found.
pause
exit /b
:INSTALL_ERROR
echo [ERROR] Installation failed.
pause
exit /b
:RUN_ERROR
echo [ERROR] Failed to start server.
pause
exit /b