ICT Version 1.2 and later makes it much easier and quicker for users to test their apps. Users can change their client app (front-end code) to point locally or remotely. To take advantage of this feature, an app must contain a plist file with the correct configurations.
Steps for configuration:
Open Finder and navigate to your app’s directory. Once there, create a ‘Configuration’ directory inside your app directory.
Open Xcode and select File -> New -> File… When the dialog opens, select ‘Resource’ under OS X. Then select ‘Property List’.
Click ‘Next’. Rename the Property List to ‘bluemix.plist’ then place the new Property List in your newly created ‘Configuration’ directory inside your app’s directory.
Click ‘Create’. Inside the newly created bluemix.plist, create three keys:’isLocal’ (boolean), ‘appRouteLocal’ (String) and ‘appRouteRemote’ (String).
Fill in ‘appRouteLocal’ and ‘appRouteRemote’ with the Values you want them to be.
Changing the “Connected to:” selector within ICT will toggle ‘isLocal’ to be ‘NO’ or ‘YES’. You can also change these from the ‘bluemix.plist’ file, which will be shown in the IBM for Cloud Tools dashboard.When ‘isLocal’ = YES, ‘appRouteLocal’ is used as the client target.
When ‘isLocal’ = NO, ‘appRouteRemote’ is used.
This example builds on my previous post where I showed how to access a Bluemix MongoDB service from a Spring data app running locally. In that simple example the MongoDB credentials were either hard coded in the application or specified manually on the command line.
In this blog post I'll show how to access a Compose for MongoDB database running on IBM Bluemix from a Spring boot application running locally. Spring is a popular open source framework and container for Java applications. MongoDB is a popular open source document oriented NoSQL database that uses JSON-like documents.
Have you ever wondered how you could protect your Spring app with the Bluemix SSO service? In this article, we’ll cover how you can convert a Spring application running on Liberty from using a manually configured Open ID Connect (OIDC) Server, to using the Bluemix Single Sign On service. A short while ago I wrote […]