Angular on PCF and Other Production Servers

See the original posting on DZone Python

Background

Angular has become the primary choice for developers to build a web and SPA application. However, most of the tutorials available talk about running the Angular app using "ng serve." "ng serve" is a command provided by the AngularJS CLI. It will  serve a project that is ‘Angular CLI aware,’ i.e. a project that has been created using the Angular CLI,  particularly using:  ng new app-name 

This is useful when you are developing the app on your system and want to see the changes reflected in browser while coding. However, once the application is ready to deploy, you’ll need to host it on a web server like Node.js or NGINX. PCF also supports buildback for nodejs and nginx.