add product model and seed script

This commit is contained in:
2017-01-26 17:30:38 -07:00
parent 10aab7ca76
commit a41c7428b9
8 changed files with 120 additions and 30 deletions

View File

@@ -2,7 +2,7 @@
const https = require('https');
function fetchCustomers(count = 1) {
const url = `https://randomuser.me/api/?nat=us&results=${count}`;
const url = `https://randomuser.me/api/?nat=us,gb&results=${count}`;
console.log('Seeding from https://randomuser.me/api/');
return new Promise((resolve, reject) => {