-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
26 lines (21 loc) · 691 Bytes
/
Copy pathstart.bat
File metadata and controls
26 lines (21 loc) · 691 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
@echo off
title OpportunityFinder
cd /d "%~dp0backend"
if not exist ".venv\Scripts\python.exe" (
echo Creating virtual environment...
python -m venv .venv
)
echo Installing dependencies...
".venv\Scripts\python.exe" -m pip install -r requirements.txt -q
if not exist ".env" if exist ".env.example" copy ".env.example" ".env" >nul
if errorlevel 1 (
echo ERROR: pip install failed.
pause
exit /b 1
)
echo Starting API at http://127.0.0.1:8000
start "OpportunityFinder API" cmd /k "cd /d "%~dp0backend" && .venv\Scripts\python.exe run.py"
timeout /t 3 /nobreak > nul
start "" "http://127.0.0.1:8000/"
echo OpportunityFinder is running. API docs: http://127.0.0.1:8000/docs
pause