Run NodeJS on Tomcat Print

  • nodejs
  • 4

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: 
https://github.com/facebook/create-react-app/blob/master/packages/cra-template/template/README.md

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

https://www.devglan.com/spring-boot/spring-boot-angular-deployment


Was this answer helpful?

« Back