mern-ecommerce
mern-ecommerce copied to clipboard
Add dummy data with seed functionality for Products, Brands, Categories
- Add the ability to run a script to populate the database with dummy ecommerce data including brands, products, categories
when i try to add dummy data i am getting seed db started but, data is not being added to mongodb , what i am doing wrong ?
"data:import": "node seeder.js"
use this in scripts in package.json file in backend and one more thing give name of ur file as "seeder.js"