選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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. };