I am a beginner at vue and node. I want to deploy a Vue.js app that uses an express api on different ports. The problem is that I do not know how to deploy the app so that the api works aswell. The api connects to a MySQL database that is hosted on Hostinger. I have already bought a Hostinger Business Web Hosting and am not sure how to continue. Until now, locally I used the package.json to start the "node api.js" and the "vue-cli-service serve" at the same time, but I am not sure how this could will work in production.
I have also seen some approaches with PM2, but they are not clear enough for me.