-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
44 lines (38 loc) · 970 Bytes
/
start.bat
File metadata and controls
44 lines (38 loc) · 970 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
@echo off
echo ============================================
echo CS2 Key Backend - Setup and Start
echo ============================================
echo.
REM Check if Node.js is installed
where node >nul 2>nul
if %ERRORLEVEL% NEQ 0 (
echo [ERROR] Node.js is not installed or not in PATH!
echo.
echo Please install Node.js from: https://nodejs.org/
echo Make sure to choose the LTS version if you're downloading now.
echo.
pause
exit /b 1
)
echo [OK] Node.js found
node --version
echo.
REM Install dependencies
echo Installing dependencies...
call npm install
if %ERRORLEVEL% NEQ 0 (
echo.
echo [ERROR] Failed to install dependencies!
echo.
echo If you see errors about 'better-sqlite3', the fixes have been applied.
echo Make sure you're using Node.js LTS version (v20.x or v22.x).
echo.
pause
exit /b 1
)
echo.
echo [SUCCESS] Dependencies installed!
echo.
echo Starting server...
echo.
call npm start