Reputation: 2087
I am trying to load two apps in one domain based on own roles. There are two methods for implementing this:-
I am using angular-CLI of my project. In my project 500+ components. So which one is better and How to implement it?
Upvotes: 4
Views: 2009
Reputation: 607
Run each app on it's own site.
http://localhost:4000/
http://localhost:4001/
Then use a gateway server to redirect based on part of the url:
http://localhost:80/admin ====> site1
http://localhost:80/public ====> site2
Upvotes: 1