Skip to main content

Create or connect a project

Use Create your first app to create the backend and frontend. Run bijection dev from the project directory to work on them together.

The dev loop

An app is one tree of declarations. bijection/app.ts exports app(tree), and every name in the app is a path in that tree: the table notes.items, the query notes.list. A function with allow is exposed at its path. A function without allow is internal.
bijection/notes.ts
bijection/app.ts
Each time you save, bijection dev installs the changed tree on your development deployment. The client is typed from the tree itself (api<typeof App>()), so your frontend’s TypeScript follows the same change with no generated bindings.

Before you commit

  1. Run bijection check. It checks the tree’s types, the lexicon and every label flow, and analyzes your guards.
  2. If the app’s exposure or authority changed, run bijection check --write-lock, review the bijection.lock diff and commit it with the source. bijection dev rewrites it on save and prints the diff. Deploy refuses a stale lock.
  3. Run your tests on the real kernel with kernel(app).
See TypeScript, the CLI and Working with installations.