Skip to content

Signals DPG Setup

The Signals DPG is the network-aware backend (API + UI). It runs standalone — it needs only its own Postgres + Redis, no other DPG.

Pick a track: A — Docker-only (fastest, one command) or B — hybrid dev (run the API/UI from source with hot-reload).

Terminal window
git clone https://github.com/Blue-Dots-Economy/signals-dpg.git
cd signals-dpg/local-setup
cp .env.example .env # set SIGNALS_PII_KEY (openssl rand -base64 32)
docker compose up -d --build

This builds a Postgres image with pgvector + PostGIS (the extensions db:init needs), applies the schema, then starts the API and UI.

Open thisURL
Signals UIhttp://localhost:5173 (must be :5173 — CORS)
Signals APIhttp://localhost:2742 (/reference = Swagger)

Run Postgres + Redis from local-setup/, then the API + UI from source:

Terminal window
cd signals-dpg/local-setup && cp .env.example .env
docker compose up -d postgres redis # backing services only
cd .. # repo root
pnpm install
cp .env.example .env # point at the Docker DB/Redis (see the guide)
pnpm db:push:api && pnpm db:init:api # schema + extensions/tables
pnpm dev:api # API on :2742 (terminal 1)
pnpm dev:ui # UI on :5173 (terminal 2)

Full env values, resets, and troubleshooting are in the local-setup/LOCAL_SETUP.md guide.

Because the model is schema-driven, you add item types and forms through network.json schemas rather than code.

Next: set up the Aggregator DPG, or wire an integration via the API Reference.