Tuesday 27 November 2018

First project not using Mongoose, would love a code evaluation

Hey everyone,I'm used to having my project split up into routes/controllers/models and using Mongoose to handle the last one of those. Decided to give the native Node.js MongoDB driver a shot. Code works, but I suspect my project structure isn't 100% best practices. I figured I would just have my routes in index.js and only modularize the controllers - is that OK for such a small project? And basically anything else you can find that is wrong with the project, please mention.https://ift.tt/2KCGjv7 everyone!

Submitted November 27, 2018 at 11:45PM by ibrahimpg

No comments:

Post a Comment