You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

db.js 399B

123456789101112131415
  1. const faker = require('faker');
  2. module.exports = () => {
  3. const items = [];
  4. for (let id = 1; id <= 500; id++) {
  5. items.push({
  6. id: id,
  7. name: `${faker.commerce.productAdjective()} ${faker.commerce.productMaterial()} ${faker.commerce.product()}`,
  8. color: faker.commerce.color(),
  9. price: `$${faker.commerce.price()}`,
  10. company: faker.company.companyName(),
  11. });
  12. }
  13. return { items };
  14. };