Skip to main content

Developers - building on bank8

The single-repo story​

Clone any bank8 service and build - the platform SDK and the bank8 SDK arrive as pinned git dependencies, and committed .sqlx caches mean no live database is needed to compile:

git clone https://github.com/Bank8-dev/bank8-ledger.git
cd bank8-ledger
cargo build
cargo test # offline

The vertical lifecycle​

make infra-up # platform TLS-only PG 18 + Valkey (the tree's single compose)
sentin8-cli db bootstrap
vertical init # creates the bank8 database + per-service schemas
vertical enroll # registers services, scopes, admin UIs, triggers, ident maps
make start # captain spawns the fleet (platform + bank8 services)

No migration code exists - greenfield: schema changes rewrite the init SQL and re-run vertical init.

Make targets (group folder)​

TargetRole
make buildeverything (release): the SDK facade, the shared policy harness, every service, and the apps
make build-sdkthe bank8-sdk facade workspace + bank8-policy-harness
make build-servicesevery bank8 service binary
make testSDK + harness suites, then every service suite - fails on any failure
make test-dbthe DB-backed suites against the live database (needs .run secrets)
make test-openapithe router-to-spec drift guard on every service
make enrollregister services, scopes, admin UIs, triggers, ident maps
make statusfleet status (KEY=<ip:port>)

Integration surface​

  • Rust: the bank8 facade (see the SDK page)
  • Flutter: Bff8ApiClient through the platform's Flutter package (see samples)
  • Events: subscribe to bank8:{service}:{resource}:{operation} through Sentin8:Bus (declarative triggers at enrollment)
  • Product logic: author WASM edge functions (Rust and TypeScript first-class; any WASM producer works) and deploy them to Sentin8:Func - the ledger fires pre_posting/post_posting hooks around the atomic commit and hosts them through the proxy-back endpoint. See Extending Bank8.
  • Admin: the SDUI pages each service serves from GET /v1/admin/ui/{page} - enrolled as admin scopes, rendered by Sentin8:Dash, no app release per screen.

E2E​

bank8-e2e drives the real user flows through the browser + BFF proxy only - sign-up, org/env creation, teller provisioning, customer journeys, FDX consent, and the back-office surfaces for accounting, lending, branch and payments cards - never direct SQL or backend calls.

Deep dive​

Every service's full docs live in its reference section - harvested from the public repositories at build time.