node.js & express - global modules & best practices for application structure

后端 未结 3 1439
醉话见心
醉话见心 2020-12-23 12:57

I\'m building a node.js app that is a REST api using express and mongoose for my mongodb. I\'ve got the CRUD endpoints all setup now, but I was just wondering two things.

3条回答
  •  礼貌的吻别
    2020-12-23 13:24

    I'd take a look at this project https://github.com/madhums/node-express-mongoose-demo . It is a great example on how to build a nodejs application in a standard way.

提交回复
热议问题