Getting Started

From a fresh clone to a built engine and a passing test suite.

This is the shortest path from nothing to a working build. Running the editor and the rest of the local stack is on Development Environment.

Prerequisites

  • Rust. The exact version is pinned in rust-toolchain.toml; rustup picks it up automatically.
  • just, the command runner. Use the just recipes rather than calling cargo yourself: they are what CI and the pre-commit hooks run.
  • Node.js, for the frontends and for the script tests that just check runs.
  • Docker, for the tests that start a PostgreSQL container.
  • mold, on x86_64 Linux (dev containers included). packages/.cargo/config.toml links with mold there, so a build fails without it. just dev-setup installs it; see One-time setup.

Clone and build

git clone https://github.com/NederlandseDigitaleDienst/regelrecht.git cd regelrecht just dev-setup # once per machine: mold, and one target dir shared by all worktrees just build-check # cargo check over the whole workspace

Check that everything passes

just check

This runs what CI runs: formatting, clippy, a build check, schema and annotation validation, the script test suites, and the full Rust test suite. The last step needs Docker. On a machine without it, run just test-no-docker instead, which skips the container-backed crates.

just on its own lists every recipe. Testing explains which one to run when.

Next steps

RegelRecht

An exploration into transparent, executable legislation, and one of the three projects in the starting selection of the Nederlandse Digitale Dienst.

Links

GitHub repository
How it works
Stay informed
Roadmap (Dutch)
Documentation
Research

Contact

regelrecht@minbzk.nl

Part of

Nederlandse Digitale Dienst
Ministry of Economic Affairs and Climate Policy