- Install Python 3.11+.
- Setup venv and install deps:
cd backend python -m venv .venv .venv\Scripts\activate # or source .venv/bin/activate pip install -r requirements.txt
- Start API:
uvicorn app.main:app --reload --port 6789
- Health check: http://localhost:6789/health
- Install Node 18+ and npm/pnpm/yarn.
- Install deps:
cd frtend npm install - Set API base if needed (default http://localhost:6789):
echo VITE_API_BASE=http://localhost:6789 > .env - Start dev server:
npm run dev -- --host --port 6790
- Open http://localhost:6790
- Ports changed to 6789 (backend) and 6790 (frontend) to avoid conflicts.
- For production, build frontend (
npm run build) and serve via your preferred static host; keep API base updated.
- Ensure deps are installed once:
pip install -r backend/requirements.txt npm install --prefix frtend - Run
python launcher.pyfrom project root; it will start backend (6789), frontend (6790), and open the browser. - Optional single-file build:
pip install pyinstallerthenpyinstaller --onefile launcher.py(dist/launcher.exe). You still need Node + npm and Python deps available on the machine. Close the console to stop services. - When using the PyInstaller build, keep
backend/andfrtend/folders beside the exe (or include them in the bundle) so paths resolve correctly.