Local development: backend (FastAPI) + frontend (static HTML).
- Backend:
backend/(FastAPI, SQLAlchemy, YOLO integration) - Frontend:
frontend/index.html(single-file static front-end)
- Create a Python virtual environment and activate it:
python -m venv venv
.\venv\Scripts\Activate.ps1- Install backend dependencies:
cd backend
pip install -r requirements.txt- Start backend (from repo root):
# From project root
python start_backend.py- Serve the frontend (any static server). For example, with VS Code Live Server or:
python -m http.server 5500 -d frontend- Open
http://localhost:5500and use the UI.
- Backend default port:
8001(seestart_backend.py). - Add your secrets to
backend/.env(do NOT commit.env). - Large model files (
*.pt) and credentials are ignored by.gitignore.