【问题标题】:Folder structure for AngularJs /NodeJs/PostgresqlAngularJs /NodeJs/Postgresql 的文件夹结构
【发布时间】:2016-05-01 18:08:01
【问题描述】:

如何使用 nodejs 和 angularjs 设置项目 我在我的项目中使用了以下东西。

  1. 后端 - Nodejs 和 Express
  2. 前端 - Html5、Bootstrap、AngularJs
  3. 数据库 - Postgresql。

如何在客户端和服务器等单独的文件夹中设置项目?

因为我的前端和后端都有 MVC。那么我该如何分离(前端和后端)中的控制器、模型?

【问题讨论】:

    标签: angularjs node.js postgresql


    【解决方案1】:

    尝试使用这个

    ├── client
    │   ├── app                 - All of our app specific components go in here
    │   ├── assets              - Custom assets: fonts, images, etc… 
    │   ├── components          - Our reusable components, non-specific to to our app
    │ 
    ├── e2e                     - Our protractor end to end tests
    │
    └── server
        ├── api                 - Our apps server api
        ├── auth                - For handling authentication with different auth strategies
        ├── components          - Our reusable or app-wide components
        ├── config              - Where we do the bulk of our apps configuration
        │   └── local.env.js    - Keep our environment variables out of source control.
        │   └── environment     - Configuration specific to the environment the server is being run in
        └── views               - Server rendered views
    

    取自这里http://tylerhenkel.com/building-an-angular-node-comment-app-using-yeoman/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-18
      • 2017-12-05
      • 2021-12-08
      • 2015-08-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多