-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_web.bat
More file actions
44 lines (37 loc) · 1013 Bytes
/
start_web.bat
File metadata and controls
44 lines (37 loc) · 1013 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
@echo off
REM Blockchain Mining Simulation - Web Interface Startup Script (Windows)
echo ======================================
echo Blockchain Mining Simulation
echo Web Interface Startup
echo ======================================
echo.
REM Check if Python is available
python --version >nul 2>&1
if errorlevel 1 (
echo Error: Python is not installed or not in PATH
pause
exit /b 1
)
REM Check if required packages are installed
echo Checking dependencies...
python -c "import flask, flask_cors, matplotlib, numpy" >nul 2>&1
if errorlevel 1 (
echo Installing required dependencies...
python -m pip install -r requirements.txt
if errorlevel 1 (
echo Error: Failed to install dependencies
pause
exit /b 1
)
)
echo √ Dependencies satisfied
echo.
REM Start the Flask application
echo Starting Flask server...
echo The web interface will be available at:
echo.
echo http://localhost:5001
echo.
echo Press Ctrl+C to stop the server
echo.
python app.py