maryamaljanabi / bestbags-nodejs-ecommerce

A responsive ecommerce website using Node js, Express js, and MongoDB
318 stars 206 forks source link

Replacing Products #23

Closed FriiZoLoGYy closed 3 years ago

FriiZoLoGYy commented 3 years ago

I've been playing around with this for a few days now, I was wondering how I would go about removing faker and replacing with real products to down the line have on a live site.

maryamaljanabi commented 3 years ago

@FriiZoLoGYy Hello, Faker is only used to generate the productCode, description, price, and manufacturer fields in the products-seed.js file. You can simply create an array for each of these fields like I created the arrays for the images and titles of each category and insert them instead of using Faker.