title: How to deploy Spring framework backend and Angular 2 frontend application in any online server?
body: <p>Please correct if the way I am doing is wrong.</p>
  
  <p>In my web application I am not using jsp pages for developing user interface. Instead I am using html, css and Angular 2 and front-end project structure is separated from back-end. </p>
  
  <p>Although I am able to develop a simple project using Angular CLI which is served by SpringMVC back-end. Front-end is using port 4200 and backend is running on port 8080. I have managed to take and serve request from Angular 2 to SpringMVC. In local mode these are working perfectly, now I want to make them host on a live server. </p>
  
  <p>How to publish SpringMVC back-end and Angular 2 front-end separately but running on same domain? I am not using SpringBoot also front-end and back-end are in separate folders. I do not want to combine both in same project structure and generate a war file and deploy. </p>
  
  <p>What is the best practice for developing SpringMVC back-end and Angular-2 back-end and deploying them in online server?</p>