Closed DavidLarsKetch closed 6 years ago
In data/fakers/products, create: productTypesFaker.js, productsFaker.js, customersFaker.js, paymentOptionsFaker.js, ordersFaker.js, productOrdersFaker.js index.js
data/fakers/products
productTypesFaker.js
productsFaker.js
customersFaker.js
paymentOptionsFaker.js
ordersFaker.js
productOrdersFaker.js
index.js
Add default argument to generate function that is amount of rows to create. Each of these exports a function that would return an array of object.
Export these
Each of these exports a function that would return an array of object.
Add index.js to products folder.
Add default argument to generate function that is amount of rows to create.
In
data/fakers/products
, create:productTypesFaker.js
,productsFaker.js
,customersFaker.js
,paymentOptionsFaker.js
,ordersFaker.js
,productOrdersFaker.js
index.js
Add default argument to generate function that is amount of rows to create. Each of these exports a function that would return an array of object.
Export these