Folder structure for both server side and thick client web app

前端 未结 3 1944
一个人的身影
一个人的身影 2021-02-05 17:41

Currently I am using Node.js for the backend and either extjs or backbone for the client and I am now completely confused on the folder structure.

Using express

3条回答
  •  名媛妹妹
    2021-02-05 18:13

    Just put the whole /webapp under /public so you'll end creating, for instance, frontend's models under /public/webapp/models

    appname
      |--models
      |  |--appmodel.js
      |--public
      |  |  |--webapp // extjs/backbone files
      |  |  |  |--models
      |  |  |  |--controllers
      |  |  |  |--css
      |  |  |  |--js
      |  |  |  |--img
      |  |  |  |--views
      |  |  |  |  |--appview.ejs
      |  |  |  |  |--extbasedview.ejs
      |--routes
      |  |--router.js
      |--app.js
    

提交回复
热议问题