For my first post I would like to ask for your opinion concerning Vue App with an Node using API.
For a small project, I am working on local in two folders : - client (VueJs) - server (Node)
And running them individually using npm : - npm run dev - npm run watch
Until now, everything is fine, as I can develop my application... but concernant deployment, I am a little bit lost.
For the VueJs side, i build my application for production using : npm run build My application has been created in client/dist
And for my server, I can use Forever, Nodemon or anything...
But, this is my question : How may I deploy both in the same instance ?
Until now, I though I could just move my dist folder to the server side while building it.
But I would to separate them, using two different port : one for api, one for client side.
As I am learning alone, I don’t know the best practice, any tips would be thankful.
(By the way, I am trying to deploy it on Google Cloud Instance, but I am lost too )
Thank you for reading