Thursday 20 July 2017

Keeping database models in their own module?

I have an express app that defines multiple db models using mongoose. I'd like to make some small command line apps that also modify the database. It seems like the best approach is to put all of my database logic in a local module - http://ift.tt/2uFxH0Q anyone know of any projects I can review that do this? I'm looking for code examples. Alternatively, is there a better way to share db code that I'm not thinking about?

Submitted July 20, 2017 at 03:06PM by fyzbo

No comments:

Post a Comment