Skip to content

Getting Started

  • Docker with Compose v2
  • make
  • Python with the cryptography package, 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.

  1. Clone the repository

    Terminal window
    git clone https://github.com/bizon-data/bizon-platform
    cd bizon-platform
  2. Create .env with an encryption key

    Terminal window
    cp .env.example .env
    make key # prints a Fernet key

    Paste the key into .env as ENCRYPTION_KEY=.... Compose reads it from there. Keep the key: if you lose it, you can’t decrypt the stored configs.

  3. Start the stack

    Terminal window
    make dev # hot reload, runs in the foreground
    # or
    make prod # built images, runs detached
    ModeUIAPI
    make devhttp://localhost:5173http://localhost:8000
    make prodhttp://localhost:3000http://localhost:8000

    Both modes run the database migrations when the API starts.

  4. Check the API

    Terminal window
    curl http://localhost:8000/api/health
    # {"status":"ok","database":"ok"}

    status is degraded and database is error when the API can’t reach Postgres.

  5. Load demo data (optional)

    Terminal window
    make seed # adds demo pipelines and sample runs
    make seed-reset # clears existing data first

    The seed runs on your host through uv and connects to Postgres on localhost:5432, which Compose exposes.

This pipeline reads posts from the bundled jsonplaceholder custom source and writes them to the logger destination.

Terminal window
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:

Terminal window
curl -X POST http://localhost:8000/api/pipelines/<pipeline_id>/run

Open 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.

TargetWhat it does
make dev-build / make prod-buildRebuild the images, then start
make downStop all services
make cleanStop all services and delete the volumes
make logsFollow the logs
make dbStart only Postgres, for running the API and worker on your host
make test / make lintRun pytest / ruff and black
make list-sources, make test-sourceTest custom sources locally