Created
July 31, 2015 21:03
-
-
Save chris-kobrzak/7eeb37a273535a8fdc16 to your computer and use it in GitHub Desktop.
Sample fake data generator that can be used with json-server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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