0

How to setup the project with nodejs and angularjs I am using the following things in my project.

  1. Backend - Nodejs & Express
  2. Frontend - Html5,Bootstrap,AngularJs
  3. Database - Postgresql.

How to setup the project in separate folder like client and server?

Becuase I have MVC for both frontend and backend also. so how could i separate the controllers , models in both(frontend and backend)?

1 Answer 1

1

try to use this one

├── 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

taken from here http://tylerhenkel.com/building-an-angular-node-comment-app-using-yeoman/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.