Files
forwarder/README.md
T
1sonhador d1e4725ac3 Add Python API, worker, MySQL migrations and wire admin-ui in Docker.
Backend FastAPI + APScheduler worker with Alembic schema; admin-ui served
via nginx with /api proxy. Unifies Paperclip UI scaffold with local platform code.
2026-07-01 00:04:57 +01:00

1.4 KiB

BizDocs Forwarder

Multi-account IMAP → BizDocs forwarder: detect invoice attachments (PDF/XML/ZIP), re-send via SMTP as .eml.

Stack

Component Path Description
API src/forwarder/api/ FastAPI REST
Worker src/forwarder/worker/ APScheduler IMAP sync
Admin UI admin-ui/ Vite + React
DB MySQL 8 Alembic migrations

Quick start

cp .env.example .env
# Generate ENCRYPTION_KEY: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"

docker compose up -d --build
docker compose exec api alembic upgrade head

Local dev

python3 -m venv .venv && source .venv/bin/activate
pip install -e .
docker compose up -d mysql
alembic upgrade head
uvicorn forwarder.api.app:app --reload --app-dir src
forwarder worker   # second terminal
cd admin-ui && npm install && npm run dev   # third terminal

Deploy (Proxmox CT)

git clone https://git.bitreport.pt/BitReport.pt/forwarder.git
cd forwarder && cp .env.example .env
docker compose up -d --build
docker compose exec api alembic upgrade head