-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.cmd
More file actions
35 lines (31 loc) · 804 Bytes
/
setup.cmd
File metadata and controls
35 lines (31 loc) · 804 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
@echo off
echo ==========================================
echo Quest Game Setup & Launcher
echo ==========================================
echo.
WHERE node >nul 2>nul
IF %ERRORLEVEL% NEQ 0 (
echo Error: Node.js is not installed or not in your PATH.
echo Please install Node.js from https://nodejs.org/
pause
exit /b
)
if not exist node_modules (
echo Installing dependencies...
call npm install
if %ERRORLEVEL% NEQ 0 (
echo Error: Failed to install dependencies.
pause
exit /b
)
) else (
echo Dependencies already installed.
)
echo.
echo Starting Development Server...
echo The game will open in your browser shortly.
echo Press Ctrl+C in this window to stop the server.
echo.
start "" "http://localhost:5173/"
call npm run dev
pause