-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSTART_WINDOWS.bat
More file actions
61 lines (51 loc) · 1.56 KB
/
START_WINDOWS.bat
File metadata and controls
61 lines (51 loc) · 1.56 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
@echo off
REM Docking@HOME Quick Start Script for Windows
REM Authors: OpenPeer AI, Riemann Computing Inc., Bleunomics, Andrew Magdy Kamal
echo.
echo ========================================================================
echo Docking@HOME v1.0
echo Molecular Docking Platform
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://www.python.org/downloads/
pause
exit /b 1
)
echo [OK] Python found
echo.
REM Check if virtual environment exists
if not exist "venv" (
echo Creating virtual environment...
python -m venv venv
echo [OK] Virtual environment created
echo.
)
REM Activate virtual environment
call venv\Scripts\activate.bat
REM Check if requirements are installed
python -c "import fastapi" >nul 2>&1
if errorlevel 1 (
echo Installing dependencies...
echo This may take a few minutes...
echo.
pip install -r requirements.txt
echo.
echo [OK] Dependencies installed
echo.
)
echo [OK] All dependencies ready
echo.
REM Start the server
echo Starting Docking@HOME Server...
echo.
echo The GUI will open in your browser automatically
echo Press Ctrl+C to stop the server
echo.
echo ========================================================================
echo.
python start.py --host localhost --port 8080
pause