Front End Model Layers & JS-Data

 

40:60 :: 2:3

 

Mongoose:backend :: JS-Data:frontend

 

ORMs:Database  ::  FEMLs: Routes

 

Mongoose equips our backend data with functionality (methods, statics, virtuals, validators, etc.)

 

Front End Model Layers like JS-Data equip our front end data with functionality (methods, statics, virtuals, validators, etc)

 

 1. To avoid defining REST-oriented/CRUD functionality 

2. To reason about our data in an object-oriented way

Done

Done

TO DO

How is this possible?

 

between 19 & 20

Why?

1. To avoid defining REST functionality for each of our resources / To DRY out our code 

 

2. To reason about our data in a OOP-oriented way (mongoose)

Example

Front End Model Layers: Js-Data

By ayana28

Front End Model Layers: Js-Data

  • 1,493