Getting Started
Prerequisites
Section titled “Prerequisites”- Docker with Compose v2
make- Python with the
cryptographypackage, to generate the encryption key - uv, to load the demo data with
make seed
The backend supports Python 3.11 and 3.12. The Docker image uses 3.12.
Run the platform
Section titled “Run the platform”-
Clone the repository
Terminal window git clone https://github.com/bizon-data/bizon-platformcd bizon-platform -
Create
.envwith an encryption keyTerminal window cp .env.example .envmake key # prints a Fernet keyPaste the key into
.envasENCRYPTION_KEY=.... Compose reads it from there. Keep the key: if you lose it, you can’t decrypt the stored configs. -
Start the stack
Terminal window make dev # hot reload, runs in the foreground# ormake prod # built images, runs detachedMode UI API make devhttp://localhost:5173 http://localhost:8000 make prodhttp://localhost:3000 http://localhost:8000 Both modes run the database migrations when the API starts.
-
Check the API
Terminal window curl http://localhost:8000/api/health# {"status":"ok","database":"ok"}statusisdegradedanddatabaseiserrorwhen the API can’t reach Postgres. -
Load demo data (optional)
Terminal window make seed # adds demo pipelines and sample runsmake seed-reset # clears existing data firstThe seed runs on your host through
uvand connects to Postgres onlocalhost:5432, which Compose exposes.
Create your first pipeline
Section titled “Create your first pipeline”This pipeline reads posts from the bundled jsonplaceholder custom source and writes them to the logger destination.
curl -X POST http://localhost:8000/api/pipelines \ -H "Content-Type: application/json" \ -d '{ "name": "jsonplaceholder-posts", "config": { "name": "jsonplaceholder-posts", "source": { "name": "jsonplaceholder", "stream": "posts", "source_file_path": "/custom_sources/jsonplaceholder/source.py" }, "destination": {"name": "logger", "config": {"dummy": "dummy"}} }, "tags": ["demo"] }'Trigger a run with the id from the response:
curl -X POST http://localhost:8000/api/pipelines/<pipeline_id>/runOpen the pipeline in the UI and click the run to see its logs. You can also create the same pipeline from Pipelines → New in the UI.
Other Make targets
Section titled “Other Make targets”| Target | What it does |
|---|---|
make dev-build / make prod-build | Rebuild the images, then start |
make down | Stop all services |
make clean | Stop all services and delete the volumes |
make logs | Follow the logs |
make db | Start only Postgres, for running the API and worker on your host |
make test / make lint | Run pytest / ruff and black |
make list-sources, make test-source | Test custom sources locally |