Run from source
Source mode is intended for local development. Use Docker Compose for a persistent deployment.
Backend
Section titled “Backend”Create a virtual environment, install the pinned dependencies, and start the FastAPI backend:
python3.12 -m venv .venvsource .venv/bin/activatepython -m pip install -r backend/requirements.txtexport PYTHONPATH="$PWD/backend"export APP_CONFIG_PATH="$PWD/data/config.yml"uvicorn app.main:app --host 127.0.0.1 --port 8080 --reloadRun these commands in PowerShell:
py -3.12 -m venv .venv.\.venv\Scripts\Activate.ps1python -m pip install -r .\backend\requirements.txt$env:PYTHONPATH = "$PWD\backend"$env:APP_CONFIG_PATH = "$PWD\data\config.yml"uvicorn app.main:app --host 127.0.0.1 --port 8080 --reloadThe bootstrap file must use paths that exist on the host. Point the database,
data directory, and master key to absolute paths under the checkout’s ignored
data directory.
bootstrap_version: 1database: driver: sqlite path: /home/user/brokerr/data/app.dbstorage: data_dir: /home/user/brokerr/datasecurity: master_key_file: /home/user/brokerr/data/master_keyUse forward slashes in YAML paths:
bootstrap_version: 1database: driver: sqlite path: C:/projects/brokerr/data/app.dbstorage: data_dir: C:/projects/brokerr/datasecurity: master_key_file: C:/projects/brokerr/data/master_keyContainer paths such as /data/app.db are not automatically mapped in source
mode and work only when those paths exist on the host.
Frontend
Section titled “Frontend”Open a second terminal while the backend is running:
cd frontendnpm installnpm run devRun these commands in PowerShell:
cd .\frontendnpm installnpm run devOpen the URL printed by Vite. Requests under /api and /webhooks are proxied
to http://localhost:8080.
Production build check
Section titled “Production build check”cd frontendnpm run buildcd .\frontendnpm run buildThe production Dockerfile performs this frontend build and serves the resulting static assets from the FastAPI application.