Skip to content

Instantly share code, notes, and snippets.

@chris-kobrzak
Created July 31, 2015 21:03
Show Gist options
  • Save chris-kobrzak/7eeb37a273535a8fdc16 to your computer and use it in GitHub Desktop.
Save chris-kobrzak/7eeb37a273535a8fdc16 to your computer and use it in GitHub Desktop.
Sample fake data generator that can be used with json-server
module.exports = function() {
var faker = require("faker"),
_ = require("lodash");
return {
people: _.times(100, function (n) {
return {
id: n,
name: faker.name.findName(),
jobTitle: faker.name.jobTitle()
}
})
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment