chicken-sloths / bangazon-api-sprint1

API for a mock Amazon + Etsy platform providing developers access to the company's employee & product data
0 stars 0 forks source link

Explain File Structure in Readme / Wiki #96

Open TimAConner opened 6 years ago

TimAConner commented 6 years ago

Context

  1. Define the file structure of the project. For products, for example, have a list of the locations of each file associated with products.

Products Example

Generates JSON

/data/faker/products/_productsFaker.js

Builds JSON

/data/build-data.js

JSON

/data/json/products.json

Route

/routes/products/products.js

Model

/models/products/ProductModel.js

Controller

/controllers/products/productsCtrl.js

DavidLarsKetch commented 6 years ago

Nice, great idea!