Updated:
Project 1: PHP, HTML, CSS, Java, mySQL
Project 2: Angular, Spring Boot, PostgreSQL
I am trying to build the part of Project 1 as separate project (Project 2 which will run independently with its own database) and these two projects will communicate via API calls.
Problem I am facing is : They both should run under same domain (no sub-domain) i.e. Domain will be same across the whole functionality of both projects but internally there are two projects running ( Project 1 + Project 2).
Also, we want to white label the Project 2 so that we can provide it as a service to other tenants.
For e.g. Imagine Amazon.com as Project 1, and as Project 2 I want to maintain all Profile Details of user, Order history, payment history, Invoices. This service (Project 2) I can provide to all other shopping Applications, when user clicks on My Profile (Project 2), it will show all his profile details which are stored in Project 2 database (And behind the scenes both Projects will communicate via API calls )
So if I build Project 2 as part of Project 1 with Separate database then is it possible to run them under same domain? if yes how ? if No then any other ways to achieve it?
Thanks