Populate your database filling with fake datas using simpleSchema and Collection2 on Meteor
> meteor add gbit:populate
Meteor.startup(function(){ // Say how much fakes you need // Default is 3 Populate.amount = 5; // Insert five fakes Products.populate(); // You can pass argument with number of fakes Users.populate(3); // Return 3 fake users and insert in your db if is empty });
Meteor populate use faker.js to fill fields
var Users =new SimpleSchema({ name: { type: String, fill: faker.METHOD.NAME }, email: { type: String, fill: function(){ return Users.findOne().email; } } });
Template.demo.helpers({ user: function(){ return Populate.fakeFromSchema( UserSchema ); } });