I really would like assistance, being new to AngularJS, on the best way to structure a project I am working on.
Basically, I have a project I am going to do in the 'PEAN' stack per say (Postgres, Express, AngularJS, Node) and need a conceptual idea on how it should be structured.
The gist of it is that the application will have 4 types of user accounts and each signed in user will see a different view. Here is a simple diagram of the feature set:
USER TYPE 1:
Navigation
- feature 1
- feature 2
- feature 3
USER TYPE 2:
Navigation
- feature 1
- feature 2
- feature 3
And so on for the other 2 users...
Nevertheless, each of the features accessible by the user will be different. So my question remains, how will the client side be structured directory wise for the client side AngularJS app?
Also, how should the repositories be setup?
- One single repo for the API and the client side code?
- Could I separate the API repo and the client side repo and contain all user account views in one client side repo?
- Should I have a client side repo for each type of user account?
Answers to these questions would clear a lot of confusion and would help me out greatly. I've done numerous amounts of research on the proper structure for an application like this and can't seem to figure it out.
Your assistance is greatly appreciated in advance!
