Seed the WealthWise MongoDB database with categories or demo data. Triggers when asked to "seed the database", "add demo data", "populate categories", or "set up test data". Does NOT trigger implicitly during general development tasks.
Seed the WealthWise database using the project's built-in seed scripts.
| Argument | Command | Seeds |
|---|---|---|
(none) or categories | npm run db:seed | System transaction categories from categories.seed.ts |
demo | npm run db:seed -- demo | Full demo dataset: user, transactions, budgets, goals from demo.seed.ts |
all | Run both in sequence | Categories first, then demo |
.env exists in apps/api/ — check with test -f apps/api/.env. Never read its contents.NODE_ENV=production is set — seeding in production is destructive.apps/api/src/seeds/demo.seed.tsNever run db:seed -- demo without confirming the target environment is not production.
If any doubt exists, ask before proceeding.