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

    Quickstart

    This tutorial takes you from an empty directory to a verified workspace with one Product Slice. Nothing in it contacts AWS.

    On this page
    1. Before you start
    2. Create the workspace
    3. Generate a Product Slice
    4. Optional: add a root site
    5. Verify
    6. Next steps

    Before you start

    • Node.js 22.13 or newer
    • pnpm 11.20 or newer
    • Git

    You do not need an AWS account until you deploy.

    Create the workspace

    bash
    pnpm dlx @empire-builder-kit/create my-workspace
    cd my-workspace

    The command writes the workspace source, installs its dependencies and makes one initial Git commit. Pass --skip-git if you want to commit yourself, or --dry-run to see what would be written.

    The new workspace contains the Foundation under packages/foundation, two workflows under .github/workflows, and a short root README.md with the commands for your workspace. See Workspace for the layout.

    Generate a Product Slice

    bash
    pnpm nx g @empire-builder-kit/nx:slice billing

    This creates packages/billing with 32 files: a web app with a sign-in page, a health handler and a protected handler, DynamoDB persistence, a contracts entry point and the Slice infrastructure. Slice files describes each one.

    Optional: add a root site

    bash
    pnpm nx g @empire-builder-kit/nx:site

    The root site is the project that serves /. It defaults to static mode (--mode=static); pass --mode=nextjs when a page needs server rendering. This step is optional: a workspace works without a root site.

    Verify

    bash
    pnpm verify

    Verify checks formatting and workspace health, then runs lint, typecheck, tests and the build for every project. To check one project while you work, run its own target, for example pnpm nx run billing:verify.

    Next steps