Getting Started
Scaffold a Codemation app, run it locally, and understand the smallest useful setup.
Getting Started
This page is the fastest path from zero to a working Codemation app.
Fastest path
pnpm create codemation <project-name>
cd <project-name>
pnpm devThat starts the framework-owned UI and the runtime behind it. To change discovery, credentials, database mode, or other wiring, edit <project-name>/codemation.config.ts.
Other scaffolds
You can also use:
npm create codemation@latest my-app
yarn create codemationFirst-time setup (when you need it)
Some templates walk you through migrations and a first user interactively. If yours does not, run these inside the project:
pnpm install
pnpm exec codemation db migrate
pnpm exec codemation user create --email you@example.com --password 'your-secure-password'
pnpm devWhat the starter gives you
The generated project already includes:
codemation.config.ts- a discovered
src/workflowsdirectory - a sample workflow
- local auth defaults for development
- an embedded Postgres-compatible local database via PGlite
- a
pnpm devworkflow that runscodemation dev
The smallest mental model
At the beginning, you only need to understand four things:
codemation.config.tscomposes your appsrc/workflowscontains workflow definitions- nodes move data through a workflow graph
- the runtime gives you persistence, credentials, APIs, and the operator UI