π± Seeding Your Database with Demo Data
MongoNext includes a CLI command to quickly populate your MongoDB Atlas database with demo data for development and testing.
How to Useβ
-
Run the seed command:
create-mongonext-app seed
You will be prompted for your MongoDB Atlas connection URI.
-
(Optional) Clear existing data before seeding:
create-mongonext-app seed -- --clear
This will delete all existing documents in the
categories
,products
,blogposts
, andragdocuments
collections before inserting demo data. -
(Optional) Provide the URI as a flag:
create-mongonext-app seed -- --uri="your_mongodb_atlas_connection_string"
What Gets Seeded?β
- Categories: Example categories for products and blogs.
- Products: Sample products with images and prices.
- Blog Posts: Demo blog articles with categories and content.
- RagDocuments: Example document metadata (no file processing).
Why Seed?β
- Instantly see a working dashboard and UI with real-looking data.
- Test features and UI without manual data entry.
- Great for demos, onboarding, and local development.
Notesβ
- The seed data is for development and demo purposes only.
- You can safely run the seed command multiple times; use
--clear
to reset collections. - The seed command does not process or upload files for RagDocumentsβit only creates metadata.
Need Help?β
If you have questions or want to customize the seed data, check the CLI documentation or open an issue on GitHub!