I have a question about how to integrate Angular with NodeJS and Spring Boot. I have developed an application with Angular as UI and Java/Spring Boot as backend REST API. The problem is that SEOs in a SPA do not work well. For that reason, some developers created Angular Universal to render Angular applications on the server side. Unfortunately, Angular Universal works only with ASP.NET or NodeJS.
Some attempt was made to make it work with Java as well, (see: https://github.com/swaechter/angularj-universal), but the repo has been archived/abandoned.
If I understand it correctly, the approach would be to run a NodeJS server that is in charge of rendering the Angular UI server side only, while the java service would be in charge of exposing the REST API, but since I have no experience with NodeJS or Express.js, I am not sure if that's the right way to proceed and what implications should I be care of. I couldn't find any guide online.
But my question is, should the code in angular make requests to nodeJS and then nodeJS forward them to the java service, or should angular contact directly the java service to get the data, and only NodeJS to do the SSR?
Thanks