docs: 'just seed' recipe + README seed step (#14)

This commit is contained in:
2026-06-06 00:18:11 +02:00
parent 6ebcc10405
commit dd02bddb07
2 changed files with 12 additions and 1 deletions
+8 -1
View File
@@ -49,7 +49,14 @@ BOOTSTRAP_PASSWORD=changeme123 cargo run -p server -- create-user --email you@ex
``` ```
Roles are `admin` or `editor`. 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 The API server serves JSON only; in development the SPA is served by Vite, which proxies
`/api` to `:8080`: `/api` to `:8080`:
```bash ```bash
+4
View File
@@ -4,6 +4,10 @@ set dotenv-load
run: run:
cargo run -p server 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, # Run the full test suite via cargo-nextest (per-test isolation, live output,
# hang timeouts). nextest does not run doctests, so they run separately. # hang timeouts). nextest does not run doctests, so they run separately.
test: test: