Environment setup¶
Tip
Always install devbox and
just first. We use devbox to install all
the project dependencies and set up a shell that’s suitable for development
and we use just as the source of truth and the main point of interaction
with everything in this repository.
Every task in this repository is a just
recipe. To see all recipes, run just --list. To run a recipe from the
justfile of a subdirectory, use just <module> <recipe>. For example, run
just backend test.
Devbox (recommended)¶
Devbox installs the tools in an isolated
shell. It does not change the packages of your system. devbox.json lists
them: Python 3.12, uv, just, Flutter (with Dart), CMake and Git.
./tools/install-devbox.sh # installs Devbox if missing, then `devbox install`
devbox shell
just install
just check
devbox.jsonpinspython@3.12. The other tools use@latest. If a recipe fails only insidedevbox shell, rundevbox update.If you see the error “Modules are currently unstable”, you are not in the Devbox shell, or your
justis too old. To check, runjust --version.
What Devbox does not install¶
Install these items yourself, and only when you need them. just check needs
none of them: the backend tests use in-memory SQLite, and the Flutter tests run
headless, without Chrome or the Android SDK.
Item |
Needed for |
How to get it |
|---|---|---|
Docker (the daemon) |
|
Install Docker on your host. Devbox uses the daemon of the host. If |
Chromium for Playwright |
|
Run |
Android SDK and a JDK (17 or newer) |
|
Run |
Linux desktop build libraries |
|
Install |
To start the Docker daemon by hand:
sudo dockerd > /tmp/dockerd.log 2>&1 &
Manual setup¶
Use this section only if you do not use Devbox.
just 1.31 or newer¶
The root justfile loads the justfile of each package with mod. Before
just 1.31, mod was unstable.
Warning
The just package from Ubuntu’s apt is version 1.21. It fails with the
error “Modules are currently unstable”.
Do not use --unstable or JUST_UNSTABLE=1 as a workaround. Install a
current build:
cargo install just --locked
You can also use the install script. If a sandbox proxy blocks the script (error 403), download a release tarball from GitHub. Version 1.43.0 works:
V=1.43.0
curl -sSfL "https://github.com/casey/just/releases/download/$V/just-$V-x86_64-unknown-linux-musl.tar.gz" \
| tar -xzf - -C /usr/local/bin just
Python, uv and Flutter¶
Install Python 3.12, uv and the
Flutter SDK. No apt
package has the Flutter SDK. Then run these recipes:
just install # backend and MCP server virtualenvs (uv sync)
just check # lint, tests, docs build
.env files¶
Two .env files exist. Different tools read them. Git ignores both.
File |
Copy from |
Read by |
Required |
|---|---|---|---|
|
|
|
|
|
|
|
Nothing. Every setting has a default. |
Next: Running and testing.