title: How To Deploy an Angular/Node app
body: <p>I have a simple Angular 4 frontend as well as a node backend which is hosted separately on Heroku.</p>
  
  <p>I deploy my Angular app by running <em>ng build</em> and copying over the contents of the <em>dist</em> folder to the server.</p>
  
  <p>I have since then decided to integrate the backend into the front end so it's all just one project instead of two.</p>
  
  <p>I can easily run <em>node server.js</em> on the root and it runs perfectly on my localhost.</p>
  
  <p>But how can I deploy this to my server? I obviously can't just <em>ng build</em> and copy over the <em>dist</em> folder because that only builds the client folders and files.</p>
  
  <p>Could I just copy over the server folder which holds the routes as well as the server.js file along with the client files and then somehow tell the server to run server.js when the site is loaded?</p>
  
  <p>I use FileZilla to transfer my files onto the server.</p>
  
  <p><strong>Questions</strong>:</p>
  
  <ul>
  <li>How do I deploy my angular/node app with FileZilla?</li>
  <li>Which files/folders to I copy over with the client files?</li>
  </ul>