Development environment
What a machine needs to build, run and test Seed Exact, the commands that drive it, where everything lives in the repository, and the two hosts used during development.

Seed Exact is developed from frontend/apps/mobile-exact in the Seed repository, with an Exact checkout beside the repository and Bun as the only JavaScript runtime. This section covers the machine setup, the command surface, the file layout, and the iOS simulator and web host that run the app during development.

The pieces

Piece

What it is

Page

Toolchain

Bun 1.4.2, Rust 1.97.0, Xcode, the Exact checkout at the commit in exact.rev, Hermes bundles

Setting up a machine

Launcher

bun exact.mjs <verb>: web, ios, test, agent, verify, contract, share, plus the app's own server

Commands and verbs

Files

Contracts at the app root, TypeScript in src/<pkg>, tools in tools/, generated output in .exact/ and target/

Repository layout

iOS simulator

The host that proves a change: real UIKit, real Hermes, the turn budget

Simulators and devices

Team machines

Clipper, and the Ion agent's dedicated simulator

Clipper and the Ion simulator

Web host

The fast loop: the same plan in a browser, rebuilt on save

The web host for development

How they relate

flowchart LR SRC["contracts, app.ts, src"] --> CLI["bun exact.mjs"] REV["exact.rev"] --> EX["Exact checkout, EXACT2"] EX --> CLI CLI --> WEB["web host, port 8765"] CLI --> SIM["iOS simulator"] CLI --> T["test and verify"] TS["bun exact.mjs server"] --> MOCK["test server, 127.0.0.1:4790"] T --> MOCK BUN["bun run test"] --> UNIT["Bun unit tests"]

The usual loop is: edit, check on the web host in seconds, run the Bun tests, then run the Contract tests and verify on the iOS simulator before sending a change. What each layer of tests proves is in Testing. What happens after merge is in CI and delivery. The rules agents follow while doing this are in Rules for agents working on the app.

User stories

The code described here exists to deliver these stories. Each story lists this page in its Trace (traceability).

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Attributes
name
Development environment
summary
What a machine needs to build, run and test Seed Exact, the commands that drive it, where everything lives in the repository, and the two hosts used during development.