Extend the showcase seed to every record kind
seed-showcase.js now writes a fully filled region (with map areas), chapter, team with a lead and members, award with recipients, person (bio, private details, links, current and past roles), an upcoming retreat with hosts, billed people, links and a card background, a weekly series, a past event where the award was given, and the content block showcase post with a real author and a guest. All test data with showcase- ids. Published but unlisted by default; --listed also puts it in the site's lists, map, counts and the History page. It still refuses the production database. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c5f12c769f
commit
422e521394
2 changed files with 398 additions and 49 deletions
|
|
@ -22,7 +22,7 @@ Backend (`server/`, Node >= 22). The server reads `HOST` (default `127.0.0.1`),
|
|||
- `DB_PATH=./dev.db pnpm dev`: run with `node --watch`
|
||||
- `DB_PATH=./dev.db pnpm migrate`: apply migrations without starting the server
|
||||
- `DB_PATH=./dev.db node src/admin-cli.js add|list|passwd|role|disable|enable ...`: the only way accounts are created
|
||||
- `DB_PATH=./dev.db node src/seed-showcase.js`: writes /blog/content-block-showcase, every content block type in one page, for checking `ContentBlocks.tsx`. Local only; refuses /var/lib/ngu.
|
||||
- `DB_PATH=./dev.db node src/seed-showcase.js [--listed]`: writes fully filled test records (a region, chapter, team, award, person, three events and a blog post with every content block type), ids starting `showcase-`, for checking pages. Unlisted unless `--listed`. Local only; refuses /var/lib/ngu.
|
||||
|
||||
In dev, Vite proxies `/api` to the target set in `vite.config.ts`, so the API must listen on that port.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue