The question of the middle layer of node?

the current project is built by vue scaffolding. Call the java API to render the page.
if you join the node middle layer as the service forwarding java interface, will the node server be put together with the vue project or open separately?
if you put it together, if the vue is packaged into a dist file during deployment, how to package the node service together, or if the node service and Vue are opened separately, and the node service is deployed separately with pm2?

Mar.28,2021

vue and node are opened separately. Node forwards the java interface to vue.
node is not packaged, but deployed with pm2

.
Menu