Wednesday 23 August 2017

Node best practices concerning models

I'm fairly new to node. I was reading about node and express best practices and with Separation of Concerns in mind, I was wondering if my models shouldn't have all the business logic associated with them, so my controllers only call CRUD and static methods, instead of what I was using until now, where the controller is really tied with the model and call db methods directly, in this case mongo. Can someone show me and explain some examples of good architecture solutions for a good model encapsulation and SoC between Model/Controller/View? Thanks

Submitted August 23, 2017 at 03:50PM by Compalvital

No comments:

Post a Comment