Keep It Simple Seed With Mongo. It helps you to seed records to your collection.
- Install the module
npm install -g kiss-mongo
cd path/to/your/project/root
- Must have a directory named
seeds
- Create collection
.json
files where the name if the file is the collection name - Add record in your
.json
files - do
kiss seed --db="dbName" -d
where -d means would drop the collection first
- Repo owner or admin : nilanjan.maity@dreamztech.com
1.0.3 : Supports multiple records as an array
1.0.2 : Support only one record and insert to collection