-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSTART.bat
More file actions
48 lines (41 loc) · 923 Bytes
/
Copy pathSTART.bat
File metadata and controls
48 lines (41 loc) · 923 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
@echo off
title Vocab Master Server
color 0A
echo.
echo ========================================
echo VOCAB MASTER SERVER LAUNCHER
echo ========================================
echo.
REM Check if Node.js is installed
where node >nul 2>nul
if %errorlevel% neq 0 (
color 0C
echo [ERROR] Node.js is NOT installed!
echo.
echo You need to install Node.js first:
echo.
echo 1. Go to: https://nodejs.org
echo 2. Download the LTS version
echo 3. Install it
echo 4. Run this file again
echo.
pause
exit /b
)
echo [OK] Node.js is installed!
echo.
REM Check if node_modules exists
if not exist "node_modules\" (
echo Installing dependencies...
echo.
call npm install
echo.
)
echo Starting server...
echo.
echo ========================================
echo SERVER WILL START IN A MOMENT
echo ========================================
echo.
node server.js
pause