You can run Nodejs such as react or angular on JavaPipe's Tomcat service. You will need to use npm run build to package the Nodejs for production. It creates a build folder where you can package it as a war file. cd into the build directory and then run jar cvf webui.war . Name the war file for the URL pathname and upload it to your tomcat webapps directory.
More information here:
You can find lots of information by searching 'Reactjs on tomcat' or 'Angularjs on tomcat'.
ReactJS on Tomcat
In the ReactJS deployment documentation https://create-react-app.dev/docs/deployment/, they refer to this stack overflow article: https://create-react-app.dev/docs/deployment/
Angular on Springboot