-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-server.bat
More file actions
30 lines (26 loc) · 785 Bytes
/
Copy pathrun-server.bat
File metadata and controls
30 lines (26 loc) · 785 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
@echo off
SET "NODE_PATH=C:\Program Files\nodejs\node.exe"
SET "NPM_PATH=C:\Program Files\nodejs\npm.cmd"
echo ⚡ Starting AI Converter Server...
echo.
if not exist "%NODE_PATH%" (
echo ❌ ERROR: Node.js was not found at %NODE_PATH%
echo Checking your system path instead...
where node >nul 2>&1
if %errorlevel% neq 0 (
echo Node.js is still not detected. Please restart your computer.
pause
exit /b
)
SET "NODE_PATH=node"
SET "NPM_PATH=npm"
)
if not exist "node_modules\express" (
echo 📦 Installing dependencies...
call "%NPM_PATH%" install express cors axios fs-extra
)
echo 🚀 Server is starting on http://localhost:8082
echo 💡 Keep this window open while using the tool!
echo.
"%NODE_PATH%" server.js
pause