Skip to content

Local development

Run the services separately so you can rebuild one part of the workstation and read its logs without rebuilding the entire container.

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.

Terminal · product repository
make docker-run

This starts PostgreSQL and PostgREST, not the workstation. Expect PostgreSQL on 5433 and PostgREST on 2345.

With the backend environment configured, run from the product repository root:

Terminal 1 · Rust API
make run

The target builds MCP and runs the Rust API in the foreground. Leave the terminal open. The default API address is http://localhost:2000.

Open another terminal at the product repository root:

Terminal 2 · NestJS
cd frontend
npm ci
npm run start:api

After dependency installation, open a third terminal at the product repository root:

Terminal 3 · Angular
cd frontend
npm run start:www

Expect NestJS on 3000 and the workstation on 4200. The Angular development proxy forwards /api to NestJS.

Terminal · service checks
curl --fail --show-error http://localhost:3000/api/health
curl --fail --show-error http://localhost:2000/health

Both 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.

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:

Terminal · rebuild browser bindings
rustup target add wasm32-unknown-unknown
make pack
make ci-wasm

The 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.

Choose the checks for your change:

Terminal · focused project checks
make ci-backend
make lint-frontend test-frontend

See Contributing for the full check matrix and prerequisites, Architecture for source boundaries, or Desktop for Electron/Tauri workflows.

Sources: local development, frontend, WASM.