Skip to content
Empire Builder KitDocumentation
v1 Documentation

Find your next step.

Search the complete documentation, including code examples.

    Full-text search↑ ↓ navigate Enter open
    Browse documentation
    DocsGetting started

    Local development

    The workspace root has three targets for local development: one prepares your machine, one checks it, and one runs your projects.

    On this page
    1. Prepare your machine once
    2. Run the workspace
    3. Check as you go

    Prepare your machine once

    bash
    pnpm nx run my-workspace:dev-setup
    pnpm nx run my-workspace:dev-doctor

    dev-setup prepares the local HTTPS gateway. You run it once per machine. dev-doctor inspects that setup and reports what is missing. The root project is named after your workspace, so replace my-workspace with your workspace name.

    Run the workspace

    bash
    pnpm nx run my-workspace:dev

    The root dev target runs the local fleet: your Slices together behind the local gateway. Each Slice also has its own dev target. A Slice consumes the Foundation of the development stage, so its dev target first runs foundation-preflight, which checks that the Foundation is deployed. Deploy the development stage before you start.

    Check as you go

    bash
    pnpm nx run billing:test
    pnpm nx run billing:typecheck
    pnpm nx run billing:verify

    A Slice’s verify target runs its lint, typecheck, test and build targets. Run pnpm verify at the workspace root before you hand work off.