From dd02bddb077cc1665ea2358594f5c899ffedea63 Mon Sep 17 00:00:00 2001 From: Anders Olsson Date: Sat, 6 Jun 2026 00:18:11 +0200 Subject: [PATCH] docs: 'just seed' recipe + README seed step (#14) --- README.md | 9 ++++++++- justfile | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d1f8c28..8071a37 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,14 @@ BOOTSTRAP_PASSWORD=changeme123 cargo run -p server -- create-user --email you@ex ``` Roles are `admin` or `editor`. -### 5. Run the web frontend +### 5. Seed the baseline cataloguing fields (idempotent) +```bash +just seed # or: cargo run -p server -- seed +``` +Populates the baseline Spectrum cataloguing vocabularies and field definitions. Safe to +re-run — the seed is idempotent. + +### 6. Run the web frontend The API server serves JSON only; in development the SPA is served by Vite, which proxies `/api` to `:8080`: ```bash diff --git a/justfile b/justfile index ec71caa..951d8b5 100644 --- a/justfile +++ b/justfile @@ -4,6 +4,10 @@ set dotenv-load run: cargo run -p server +# Seed the baseline Spectrum cataloguing vocabularies + field definitions (idempotent) +seed: + cargo run -p server -- seed + # Run the full test suite via cargo-nextest (per-test isolation, live output, # hang timeouts). nextest does not run doctests, so they run separately. test: