Large backbone.js web app organization

前端 未结 4 2086
梦如初夏
梦如初夏 2021-01-29 18:25

I\'m currently working on a large web app built on backbone.js and have been having a lot of issues with organization, \"zombies,\" etc. so I\'ve decided to do a major refactor

4条回答
  •  一个人的身影
    2021-01-29 18:48

    In fact, in different ways have advantages and disadvantages of different ways.The most important thing is to find a suitable way of organizing files.The following is the organization of the project I am currently doing. This way the focus will be the same module-related files are placed in a folder. For example: the people module, this module all files are placed in modules / base / people directory. After updating and maintenance of this module, only need to focus on the files in this directory on the line, will not affect files outside the directory, and improved maintainability.

    I hope my answer can give you some help, I hope you some valuable advice.

    enter image description here

提交回复
热议问题