title: How to serve a Node.js and Vue.js app together?
body: <p>I realize that there have been similar questions asked here, but I sort of need things to be spelled out for me.</p>
  
  <p>I have a VPS (through Vultr), which currently hosts a frontend Vue.js app on port 8080, and a backend Node.js (with Express) app on port 5000. The main directory is divided like so:</p>
  
  <ul>
  <li><code>./client</code>
  
  <ul>
  <li><em>frontend Vue.js files</em></li>
  </ul></li>
  <li><code>./server</code>
  
  <ul>
  <li><em>backend Node.js files</em></li>
  </ul></li>
  </ul>
  
  <p>The frontend app includes a contact form, which upon submit makes an axios POST request to the backend app. The backend app then uses Nodemailer and a Gmail account to send an email with the form's submitted information.</p>
  
  <p>As it stands, I have to run my Vue.js app and my Node.app at the same time on different ports. This seems strange to me, considering that they're really just parts of one cohesive app, and my goal is to eventually host it as a website on port 80. With this in mind, I'd like to ask what the standard practice would be for hosting the frontend Vue.js app and the backend Node.js app together.</p>
  
  <p>Thank in advance for any replies.</p>