-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
37 lines (30 loc) · 949 Bytes
/
Copy pathstart.bat
File metadata and controls
37 lines (30 loc) · 949 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
@echo off
REM Quick start script for Windows
REM Runs both backend and frontend in separate terminals
echo Starting PatternPivot...
echo.
REM Backend setup
if not exist backend\venv (
echo Creating Python virtual environment...
cd backend
python -m venv venv
call venv\Scripts\activate.bat
pip install -r requirements.txt
if not exist .env copy .env.example .env
cd ..
)
REM Frontend setup
if not exist frontend\node_modules (
echo Installing frontend dependencies...
cd frontend
npm install
cd ..
)
REM Launch both
echo Launching backend on http://localhost:8000 ...
start "PatternPivot Backend" cmd /k "cd backend && venv\Scripts\activate.bat && uvicorn app.main:app --reload --port 8000"
timeout /t 3 /nobreak >nul
echo Launching frontend on http://localhost:5173 ...
start "PatternPivot Frontend" cmd /k "cd frontend && npm run dev"
echo.
echo Done. Open http://localhost:5173 in your browser.