-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
57 lines (48 loc) · 1.49 KB
/
Copy pathstart.bat
File metadata and controls
57 lines (48 loc) · 1.49 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
@echo off
echo ============================================
echo Interactive LP UI - Local Setup
echo ============================================
echo.
:: Check for Python
where python >nul 2>nul
if %errorlevel% neq 0 (
echo ERROR: Python is not installed or not on PATH.
echo Install Python 3.10+ from https://www.python.org/downloads/
pause
exit /b 1
)
:: Check for Node
where node >nul 2>nul
if %errorlevel% neq 0 (
echo ERROR: Node.js is not installed or not on PATH.
echo Install Node.js 18+ from https://nodejs.org/
pause
exit /b 1
)
:: Create Python venv if it doesn't exist
if not exist ".venv" (
echo Creating Python virtual environment...
python -m venv .venv
)
:: Install Python dependencies
echo Installing Python dependencies...
call .venv\Scripts\activate
pip install -q -r backend\requirements.txt
:: Install Node dependencies
if not exist "node_modules" (
echo Installing Node dependencies...
call npm install
)
echo.
echo Starting backend on http://localhost:8000 ...
start "LP Backend" cmd /k ".venv\Scripts\activate && python -m uvicorn backend.main:app --reload --port 8000"
:: Brief pause so backend starts before frontend
timeout /t 2 /nobreak >nul
echo Starting frontend on http://localhost:5173 ...
start "LP Frontend" cmd /k "npm run dev"
echo.
echo ============================================
echo App running at http://localhost:5173
echo Close both terminal windows to stop.
echo ============================================
pause