-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_webapp.bat
More file actions
67 lines (58 loc) · 1.41 KB
/
Copy pathstart_webapp.bat
File metadata and controls
67 lines (58 loc) · 1.41 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
@echo off
echo.
echo ========================================
echo MetaBBX WebApp Starter (Windows)
echo ========================================
echo.
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Python is not installed or not in PATH
echo Please install Python 3.8+ from https://python.org
pause
exit /b 1
)
REM Check if Node.js is installed
node --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Node.js is not installed or not in PATH
echo Please install Node.js 16+ from https://nodejs.org
pause
exit /b 1
)
REM Check if npm is installed
npm --version >nul 2>&1
if errorlevel 1 (
echo ERROR: npm is not installed or not in PATH
echo Please install npm from https://nodejs.org
pause
exit /b 1
)
echo Dependencies check passed!
echo.
REM Install Python dependencies if needed
echo Installing Python dependencies...
pip install -r requirements.txt
if errorlevel 1 (
echo ERROR: Failed to install Python dependencies
pause
exit /b 1
)
REM Install frontend dependencies if needed
if not exist "frontend\node_modules" (
echo Installing frontend dependencies...
cd frontend
npm install
if errorlevel 1 (
echo ERROR: Failed to install frontend dependencies
pause
exit /b 1
)
cd ..
)
echo.
echo Starting MetaBBX WebApp...
echo.
REM Start the Python script
python start_webapp.py
pause