How to split monolithic node.js javascript

前端 未结 2 792
感情败类
感情败类 2021-01-20 18:39

I have a growing node.js server application, and I\'d like to get it split into several files. Here is a working code snippet demonstrating what monolithic serv

2条回答
  •  佛祖请我去吃肉
    2021-01-20 19:09

    I recommend you to have a look at some express-based (MVC) frameworks. Have a look at the list of frameworks. Moreover, you might want to check sails.js (express based framework) if you are doing a webservice and communicating with it via RESTfull requests. Please note that sails is not limited to RESTfull requests and can help you scale your project out of the box.

    Good luck!

提交回复
热议问题