Skip to main content

Posts

Showing posts from September, 2017

Making Aurelia/Angular application hosted on PCF (Cloud foundry) 12 factor (#3) complaint.

One of the challenge everyone faces is to make single page applications 12 factor complaint on cloud foundry. This is as of Sep 18, 2017, I didn't knew of any other solutions at the time of writing this blog. This is one of the idea which I thought about that would greatly benefit anyone having this problem. Again, this is just one of the solution to solve the problem and may not suit all your needs. The problem to solve here is to make single page application  factor 3  complaint, where in configuration data should reside in the environment rather than hard code in the app. One of the main variable/constants(s) in question  when it comes to single page application is to make the rest service api-url which servers data to the client reside in environment variable in pcf. One of the approach usually many people recommend is to have different environment related .ts or .js file one for each dev, qa, uat and prod. The problem with this approach is to have different build packages