How to merge Angular and Vue projects together?

后端 未结 2 415
时光说笑
时光说笑 2021-01-02 10:58

I read various resources available on this but still couldn\'t figure out a way. The issue here is that I want to merge two different projects together. My colleague was wor

2条回答
  •  被撕碎了的回忆
    2021-01-02 11:47

    One solution would be to continue to keep the two features (really applications) separate and divert the user traffic with a Load Balancer. The load balancer can handle and route traffic to the respective application based on configured URL rules. If you are using AWS, you can configure an Application Load Balancer (ALB) using listener rules and target groups.

    Even if you aren't using AWS, this type of load balancer can be easily configured. For example with a reverse proxy server on nginx.

    The benefit of this approach is that neither application needs to be updated at all, and you don't have to worry about any cross-framework dependencies, issues, etc.

    Example:

    applicationname.com/app1 -> forwards to Target Group for App 1
    applicationname.com/app2 -> forwards to Target Group for App 2
    

    In each application you can now just use regular href links that can point to the other application. example in App 1: Feature 1

提交回复
热议问题