Mobile app development with Titanium
Are you a Titanium developer that needs to develop backend services for your mobile applications? If so, you are in luck as Titanium Studio now has built in support for cloud deployments using OpenShift.
I have been a mobile application developer for both the iOS and Android platforms since the original iPhone was released on the market. During this time, I have seen the mobile application landscape dramatically change from being single user based applications to the vast majority of new applications having some type of social aspect. Your users expect to be able to see application data on their mobile device, on the web, and to even share it via social networks. This has complicated mobile development because not only do developers have to focus on the core UI of the mobile application, they also have to develop and maintain a backend system for their application.
This presents a challenge for developers because you don't know if your application will have 5 users or 5 billion users. Trying to figure out the hardware requirements for your backend hardware without a good estimation of the number of users is an extremely complex and costly process. Deploying your application to a cloud based platform-as-a-service is the ideal solution for this problem. You can quickly deploy your backend code, including a web front end, to a PaaS on a free tier and then scale up if your application is a success. This will allow you to focus on your code instead of managing the infrastructure for your application.
In order to communicate via git to your repository, we need to configure our ssh keys. To create a key pair, open up Titanium Studio preferences and expand the 'Network Connections' tab and select SSH2.
Note: If this is the first time using OpenShift, and you are creating an account, you can skip this part as Titanium Studio will generate a key for you. If you want to create an account via the web interface, head on over to openshift.com and signup.
If you don’t already have a ssh key created on your machine, select the Key Management tab -> Generate RSA Key. Provide a passphrase if you desire and then click Save Private Key. You will also want to copy your public key that is displayed so that we can add it to OpenShift.
Now that you have a key pair generated, we need to tell OpenShift what our public key is. Login to OpenShift website, click Manage your Apps, click on My Account, and select to Add a new key.
Give your new key a name of Titan and paste the key into the textfield provided.
Step 2: Create an OpenShift Project
Once you have the OpenShift plugin installed, you will need to create a new OpenShift project. At the time of this writing, the plugin support creating projects based on the PHP, Ruby, and Python languages.
In order to create a new project, select file -> new -> other -> expand cloud folder -> OpenShift project.
You might also like
Useful tips for an enterprise mobile app development company — WhaTech
Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.
Learn GameSalad for iOS: Game Development for iPhone, iPad, and HTML5