2016-01-25 36 views
0

如何使用nodejs和angularjs設置項目 我正在項目中使用以下內容。AngularJs/NodeJs/Postgresql的文件夾結構

  1. 後端 - &的NodeJS快速
  2. 前端 - HTML5,引導,AngularJs
  3. 數據庫 - PostgreSQL的。

如何在單獨的文件夾(如客戶端和服務器)中設置項目?

因爲我有前端和後端的MVC也。所以我怎麼能分開控制器,模型(前端和後端)?

回答

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/

採取