Local development
Run the services separately so you can rebuild one part of the workstation and read its logs without rebuilding the entire container.
Before you start
Section titled “Before you start”Install Node.js 24 and npm, Rust via rustup, Docker with Compose, and
GNU Make. The backend selects its toolchain in backend/rust-toolchain.toml.
The supplied PostgREST configuration uses host networking; check Docker’s
support on your operating system.
Work from a local checkout of the
product repository.
Prepare the environment files and required POSTGRES_* values in
Configuration. The Rust API will not
start without a configured database.
If you only want to evaluate the application, use the complete Docker stack instead.
1. Start the data services
Section titled “1. Start the data services”make docker-runThis starts PostgreSQL and PostgREST, not the workstation. Expect PostgreSQL
on 5433 and PostgREST on 2345.
2. Start the Rust API
Section titled “2. Start the Rust API”With the backend environment configured, run from the product repository root:
make runThe target builds MCP and runs the Rust API in the foreground. Leave the
terminal open. The default API address is http://localhost:2000.
3. Start NestJS and Angular
Section titled “3. Start NestJS and Angular”Open another terminal at the product repository root:
cd frontendnpm cinpm run start:apiAfter dependency installation, open a third terminal at the product repository root:
cd frontendnpm run start:wwwExpect NestJS on 3000 and the workstation on 4200. The Angular development
proxy forwards /api to NestJS.
4. Verify your workspace
Section titled “4. Verify your workspace”curl --fail --show-error http://localhost:3000/api/healthcurl --fail --show-error http://localhost:2000/healthBoth requests should succeed. Open localhost:4200 and exercise the feature you are developing. Exchange and AI features can still need external services or credentials after these checks pass.
| Local address | Purpose |
|---|---|
localhost:4200 |
Angular workstation |
localhost:3000 |
NestJS application API |
localhost:2000 |
Rust API |
localhost:5433 |
PostgreSQL |
localhost:2345 |
PostgREST |
localhost:8181 |
Optional MCP HTTP server, started separately |
Stop host processes with Ctrl+C in their terminals. Stop the data services
with make docker-stop. Do not substitute a volume-cleanup target.
Work on indicators or WASM
Section titled “Work on indicators or WASM”Ordinary frontend development consumes the committed wasm/pkg/ package.
After changing the Rust bindings or shared calculations, install wasm-pack
and the browser target, then regenerate the package from the product root:
rustup target add wasm32-unknown-unknownmake packmake ci-wasmThe build updates wasm/pkg/, including its license metadata. Validate the
frontend build and affected browser behavior afterwards; host Rust tests do
not prove browser execution. make -C wasm clean deletes the generated WASM
package, while root make clean preserves it.
Validate and continue
Section titled “Validate and continue”Choose the checks for your change:
make ci-backendmake lint-frontend test-frontendSee Contributing for the full check matrix and prerequisites, Architecture for source boundaries, or Desktop for Electron/Tauri workflows.
Sources: local development, frontend, WASM.