Operations
Seeding Data
How to seed MongoDB with test data.
Seeding Data
Main seed
npm run seedSeeds tenants, categories, articles, questionnaires, and WhatsApp themes.
Script: scripts/seed.js
Article home seed
npm run seed:articleHomeSeeds homepage article cards and /home/[slug] content.
Script: scripts/seedArticleHome.js
What gets seeded
Development tenant
On localhost, the seed creates a tenant matching DEV_TENANT_DOMAIN (default: getbestanswers.com). Ensure your .env points to the same domain.
Article content templates
HTML content templates live in scripts/articleContent/ and are converted via scripts/convertToHtml.js.