-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
38 lines (32 loc) · 957 Bytes
/
start.bat
File metadata and controls
38 lines (32 loc) · 957 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
@echo off
echo 🏠 ServicePro - Starting Application...
echo.
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo ❌ 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 virtual environment exists
if not exist "venv\Scripts\activate.bat" (
echo 📦 Creating virtual environment...
python -m venv venv
)
REM Activate virtual environment
echo 🔧 Activating virtual environment...
call venv\Scripts\activate.bat
REM Install dependencies if needed
if not exist "venv\Lib\site-packages\flask" (
echo 📦 Installing dependencies...
pip install -r requirements.txt
)
REM Run the application
echo 🚀 Starting ServicePro...
echo 📱 Application will be available at: http://localhost:5000
echo 👤 Admin login: admin@servicepro.com / admin123
echo ⏹️ Press Ctrl+C to stop the server
echo.
python run.py
pause