Skip to content

Create an app ​

Generate a backend and dashboard with email sign-in, an Example Slack bot and an Airtable → Slack engine.

Before you start ​

If you need npm access to @kambium packages, request access first.

Generate the application ​

sh
npm install --global @kambium/cli
kambium create my-app

Follow the prompts to install packages and open Kambium Desktop. Install Supabase CLI and Redis if prompted. Run locally

Your project ​

The generated source belongs to your app. The main files are:

text
my-app/
|-- index.ts               # Server setup and engine registration
|-- engines/
|   |-- runtime.ts         # Shared engine kinds and connections
|   |-- example.ts         # Example Slack bot
|   |-- airtable-slack.ts  # Airtable record updates to Slack
|   `-- example/
|       `-- Page.vue       # Integration dashboard page
`-- dashboard/
    |-- engines.ts         # Engine pages and creation catalog
    |-- config.ts          # Product name and tagline
    |-- App.vue            # App shell
    |-- router.ts          # Routes
    |-- style.scss         # App styles
    `-- variables.scss     # Style tokens

Backend and dashboard registration are separate: adding an engine in index.ts does not add it to the dashboard's creation menu. Follow Create your first engine for backend behavior and Dashboard integration for its page.

Tests, development data and build files
text
my-app/
|-- tests/e2e/
|   `-- app.spec.ts         # Browser tests with a disposable stack
|-- tests/server-integration/
|   `-- health.test.ts      # Vitest example with Fastify request injection
|-- engines/example/
|   `-- scenario.ts         # Setup shared by seeds and browser tests
|-- local-check.ts          # npm run local:check: verify a task result
|-- local-seed.ts           # npm run local:seed: prepare dev data
|-- build.mjs               # Backend bundle: dist/index.js
|-- Dockerfile              # Backend container
|-- Dockerfile.go-ingress   # Fly container with Go in front of Fastify
|-- ingress/                # Go gateway and process supervisor
|-- fly.toml                # Fly.io deployment
`-- .agents/skills/
    |-- kambium/SKILL.md    # Pointer to installed development guidance
    `-- kambium-kit-upgrade/SKILL.md  # App-owned upgrade instructions

To run or extend the examples, see Integration tests, E2E tests and Development seeding. Use kambium create my-app --no-go-ingress to generate a direct Fastify deployment.

Folders created when you run or build the app

supabase/migrations/ and supabase/kambium-schema.json appear during schema preparation, rather than initial app generation. Commit them together.

.local/ holds private local settings, data and encryption keys. dist/ holds the backend bundle and the separate dashboard build in dist/dashboard/. Both folders are ignored by Git. See Local runtime for retained data and service ownership.