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
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
pnpm dlx @empire-builder-kit/create my-workspace
cd my-workspaceThe 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
pnpm nx g @empire-builder-kit/nx:slice billingThis 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
pnpm nx g @empire-builder-kit/nx:siteThe 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
pnpm verifyVerify 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
- Run the workspace on your machine: Local development.
- Deploy it to a development stage: Deploy.
- Learn what you can change: Ownership and upgrades.
Continue building