Architecture of a single-page JavaScript web application?

后端 未结 14 1483
迷失自我
迷失自我 2020-12-07 06:36

How should a complex single-page JS web application be structured on the client-side? Specifically I\'m curious about how to cleanly structure the application in terms of it

14条回答
  •  一生所求
    2020-12-07 07:40

    I would recommend to explore Yeoman. It allow you to use existing "best practice" for your new project.

    For example:

    if you decide to use Angular.js, there is a Yeoman generator, that give you a structure for routing, views, services, etc. Also allow you to Test, minify your code, etc.

    If you decide to use Backbone, checkout this generator

提交回复
热议问题