AngularJs / NodeJs / Postgresql的文件夹结构

时间:2016-01-25 12:19:53

标签: angularjs node.js postgresql

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

  1. 后端 - Nodejs&表达
  2. 前端 - Html5,Bootstrap,AngularJs
  3. 数据库 - Postgresql。
  4. 如何在客户端和服务器等单独的文件夹中设置项目?

    因为前端和后端都有MVC。那我怎么能分开控制器,模型(前端和后端)?

1 个答案:

答案 0 :(得分: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/