Retire the one-time seed script
seed.js moved the v1.2 static content into SQLite. Its chapter source, src/pages/chapters.js, was deleted in the same commit that added it, and the default path pointed at src/data/chapters, which is the API hook and has none of GROUPS/SPLITS/CHAPTERS. Given the old file, it still fails on today's schema (events.host_org_id went with co-hosting), and a working run would wipe everything entered through the admin since. The database is the source of truth now. Removes seed.js, the seed-only src/data/events.ts, and the seed command from CLAUDE.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
cbf440bed9
commit
370fce6e9a
3 changed files with 0 additions and 696 deletions
|
|
@ -21,7 +21,6 @@ Frontend (repo root):
|
|||
Backend (`server/`, Node >= 22). The server reads `HOST` (default `127.0.0.1`), `PORT` (default `3001`) and `DB_PATH` (default `./ngu.db`); locally, use `DB_PATH=./dev.db`:
|
||||
- `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/seed.js`: rebuild content tables from `src/data/`. It wipes every content table first (feedback is kept). Run it from the repo, not the deployed copy.
|
||||
- `DB_PATH=./dev.db node src/admin-cli.js add|list|passwd|role|disable|enable ...`: the only way accounts are created
|
||||
|
||||
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