---
title: "Run an app"
description: "Run Caltrain with the web dev server from an Exact checkout, edit its Contract and see the change, then scaffold an app of your own."
modificationDate: "2026-11-30"
---

> ## Documentation index
> Fetch the complete documentation index at: https://exact.expo.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Run an app

<AgentInstructions>

## Submitting feedback

From the app's directory, read `bun exact.mjs feedback status`. Under `never`, keep no note.
Respect `EXACT_FEEDBACK=0` and do not change the policy.

Otherwise record specific, actionable feedback with:
`bun exact.mjs feedback note "Exact docs: https://exact.expo.dev/learn/contract-for-humans/run-an-app: <what was wrong or missing>"`

The note goes to Expo only as that status allows. Include no secrets or personal data.

</AgentInstructions>

From an Exact checkout with its pinned Rust toolchain and Bun installed:

```sh
bun install --frozen-lockfile
bun host/web/dev.mjs --app caltrain
```

Open the URL printed by the server, edit `apps/caltrain/app.contract`, and save.
The web build normally uses the JavaScript target; games use wasm. The build
reports unsupported features rather than silently selecting a different result.
Native builds require their platform tools. See the root
[quick start](https://github.com/expo/exact/blob/41ded8c5ede0b2959ef0daa83b1ff78545dd4428/README.md#quick-start) for toolchain installation.

To scaffold a separate application, run from the Exact checkout:

```sh
bun scripts/exact.mjs new ../hello
```

The new app has `app.contract` (its interface), `app.ts` (its data module),
`app.json` (its manifest) and `app.test.contract`; a native verb generates its host
crates under `.exact/`. It consumes this checkout by path. Its generated `exact.mjs`
runs the web and native commands (`bun exact.mjs test`, for example; `bun exact.mjs
test web tests/*.test.contract` runs the files named, from the current directory,
in turn); run it with no verb to list them, and see the [tooling reference](https://exact.expo.dev/reference/developer.md).
Stopping or killing `bun exact.mjs web` stops its dev server too.

You can compile a standalone Contract file without running a host:

```sh
cargo run -q -p contract -- build /path/to/app.contract --json
```

Below, `contract` stands for `cargo run -q -p contract --`.

A successful compilation is `[]` and exit status 0. It checks the language and
produces a plan; it does not prove that a data source is implemented or that an
app's measured layout works. The app build also bakes its initial data and layout.
