Skip to content

Local development

Summarized from LOCAL-DEV.md. Requires Docker Desktop and the TenancyEngine stack.

Quick start

  1. Start the platform stack per TenancyEngine local development.
  2. Start TenaBill API + web from the tenabill repo (docker compose up -d, then run API and TenaBill.Web).
  3. Open the merchant console at https://console-dev.tenabill.com (tunnel) or the configured local URL in your appsettings.Development.json.

OIDC merchant console

Merchant operators sign in through SaaSRuntime (tenabill-merchant-console OIDC client). Tokens include merchant_slug from TenancyEngine identity claims.

ClaimTenaBill behavior
merchant_slugResolve active merchant by slug (required)
merchant_idPassed through when present

Dev seed: [email protected] / ChangeMe!Dev123 with merchant_slug=tenancyengine-platform.

Dev URLs

ServiceURL
TenaBill APIhttps://api-dev.tenabill.com
Merchant consolehttps://console-dev.tenabill.com
Customer portalhttps://portal-dev.tenabill.com
Hosted payhttps://pay-dev.tenabill.com
SaaSRuntime (OIDC)https://auth-dev.saasruntime.com
Mailpithttp://127.0.0.1:18025

Contextual help in dev

Run this docs site locally so console ? icons and the help drawer resolve:

powershell
cd D:\repos\tenabill\docs
npm install
npm run dev

Dev docs base URL: http://localhost:5174.

TenaBill billing documentation