Skip to content

Instantly share code, notes, and snippets.

View mleanos's full-sized avatar

Michael Leanos mleanos

  • Berkeley, CA
View GitHub Profile
@mleanos
mleanos / meanjs-seed-many-articles.js
Created September 3, 2016 20:49
Script for seeding many Articles in the MEANJS framework. Locally, this script resides in a sub-folder of the /scripts folder that I've added to my global .gitignore. The paths of the dependencies may need to be updated for your purposes.
'use strict';
var mongoose = require('mongoose'),
chalk = require('chalk'),
config = require('../../config/config'),
mg = require('../../config/lib/mongoose');
mg.loadModels();
var seedCount = 100000;