-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstart.bat
More file actions
49 lines (37 loc) · 1.05 KB
/
Copy pathstart.bat
File metadata and controls
49 lines (37 loc) · 1.05 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
@echo off
echo ============================================
echo E-Signature Routing ^& Approval Workflow
echo ============================================
echo.
where python >nul 2>nul
if %errorlevel% neq 0 (
echo ERROR: Python is required but not found.
echo Install Python from https://python.org
pause
exit /b 1
)
if not exist ".venv" (
echo Creating virtual environment...
python -m venv .venv
)
call .venv\Scripts\activate.bat
echo Installing dependencies...
pip install -e . --quiet
if not exist "data\uploads" mkdir data\uploads
if not exist ".env" (
echo Creating .env from .env.example...
copy .env.example .env
)
echo.
echo Starting services...
echo API: http://localhost:8000
echo Frontend: http://localhost:8501
echo.
echo Press Ctrl+C or use the Shutdown button in the UI to stop.
echo.
start /b uvicorn esw_app.main:app --host 0.0.0.0 --port 8000
timeout /t 2 >nul
start /b streamlit run esw_frontend/app.py --server.port 8501 --server.headless true
timeout /t 2 >nul
start http://localhost:8501
pause