The Idea is to have multiple apps running behind the API-Gateway and implement
- security concerns (SSO)
in the api-gateway itself.
So, let suppose we have the following three UI apps:
- RED (Angular) (URL: red.mra.io)
- BLUE (thymeleaf) (URL: blue.mra.io)
- GREEN (Angular) (URL: green.mra.io)
and following microservice
- user-service
The concept is that: If we login from RED app and then go to the BLUE or GREEN app then it will show the same user information and vice versa.
- Java 22
- Node 22
Add following at the bottom of /etc/hosts
127.0.0.1 red.mra.io
127.0.0.1 blue.mra.io
127.0.0.1 green.mra.io
cd api-gateway
./mvnw spring-boot:run
cd blue-app
./mvnw spring-boot:run
cd green-app
npm start
cd red-app
npm start
You can access red-app, blue-app and green-app. Credentials (username: admin, password: Password@1)