RSS

FeedHenry on VMware’s Cloud Foundry : mobile app development in the Cloud

25 Mar

feedhenry_logo

logo_header_cloudfoundry

 

 

 

This post is going to give a little introduction to FeedHenry. As you can read on its webpage, FeedHenry:

Build powerful cloud powered apps with FeedHenry. Write in HTML5 and JavaScript. Deploy to your Cloud Foundry, and have a cloud scalable app on 5 platforms instantly!

This means that you can develop you own mobile app, upload your backend to Cloud Foundry and create an Android or iOS client to install into your device to connect. And you can do this just with HTML5, CSS3, JavaScript, Github and a Cloud Foundry account.

To start with, I’d recommend to follow the Build an app and stage to Cloud Foundry™ in 3 easy steps. You can easily upload your mobile project to Cloud Foundry from command line. To achieve this you are going to need installing node.js and the npm (node package manager).

off-topic: I installed node.js sometime ago and I haven’t been done too much lately, so I didn’t have the late node.js version. After trying some updating, I gave up and eventually I’d recommend just downloading the latest node.js installer from here.

FeedHenry gives us an Application example called App-Anatomy to start with. It is a really basic application but you can get a good idea of what you are going to find in FeedHenry. The thing I liked most was that is really easy to create and deploy your application. Besides that it’s quite Cloud Foundry-like and that may help you a lot.

Once you had staged the App-Anatomy to your Cloud Foundry account you can see its state through the vmc client. In my Cloud Foundry account it looks like this:

ivan-e105bb50cb:~ Ivan$ vmc apps
+----------------------------------------+----+---------+---------------------------------------------------------+----------------------------------------------+
| Application | # | Health | URLS | Services |
+----------------------------------------+----+---------+---------------------------------------------------------+----------------------------------------------+
| mobilecf-nl0itwjl2sxtqkiic03bv2zg-dev | 1 | RUNNING | mobilecf-nl0itwjl2sxtqkiic03bv2zg-dev.cloudfoundry.com | redis-mobilecf-nl0itwjl2sxtqkiic03bv2zg-dev |
| mobilecf-nl0itwjl2sxtqkiic03bv2zg-live | 1 | RUNNING | mobilecf-nl0itwjl2sxtqkiic03bv2zg-live.cloudfoundry.com | redis-mobilecf-nl0itwjl2sxtqkiic03bv2zg-live |
| myCityFinder | 1 | RUNNING | mycityfinder.cloudfoundry.com | |
+----------------------------------------+----+---------+---------------------------------------------------------+---------------------------------------------

Here you see that two applications have been deployed. You will find two environment, development and live. Now you can create an Android or iOS client to connect with our newly deployed application. This is pretty simple with the FeedHenry API. You just need to execute the following command:

$ fhc build app=<APP-ID> config=debug destination=android version=2.2 download=true

After this command is executed an apk file will be generated and you need to install it in you Android device to test it. The final outcome will be as follows:

android_iOS1

Every time you connect from your device to your application deployed on Cloud Foundry, a new log entry will be recorded. You can see this through the vmc client as well:

ivan-e105bb50cb:~ Ivan$ vmc logs mobilecf-nl0itwjl2sxtqkiic03bv2zg-dev
====> logs/stdout.log <====2012-02-25 10:32:06 INFO Binding to redis: 172.30.48.44:5079
App started at: Sun Mar 25 2012 10:32:06 GMT+0000 (UTC)
in getConfig with ts:1332672547671
in getConfig with ts:1332672684540
in getConfig with ts:1332672685371
in getConfig with ts:1332672685798
in getConfig with ts:1332672686703
in getConfig with ts:1332672687200
in getConfig with ts:1332672687833

FeedHenry provides you some other standard apps to begin with your mobile development. Just go to the FeedHenry’s GitHub repositories and fork one of them. There you will find node.js or sencha application.

A three line and three words overview of FeedHenry architecture.

FeedHenry has 3 top level components: cloud, shared and client. The cloud component is where your application logic stands. You need a main.js file where all calls are publicly exposed as REST API endpoints so that can be called from the client side. The shared level will contain assets that the other sides will use.

This is a really simple explanation of FeedHenry architecture but it could give you and idea of how easy it’s to create an application, take it to the cloud and create a mobile app that use it. I really recommend you to take a look at this documentation page to get a better and deeper idea of FeedHenry Architecture.

FeedHenry as a Platform.

I’ve recently been in the Codemotion conference. Among lots of really good talks, I attended to ‘Un ecosistema que atraiga a los desarrolladores by David Bonilla. He spoke that developing application is a nice thing, but it’s nicer to create a platform and that’s exactly what FeedHenry enginneer have done. Not only have they given us a cool framework to build our mobile developments but also you can download its own IDE called FeedHenry Studio, there are some good documentation and they are trying to create a development environment to join. Good Job!!

 
Deja un comentario

Publicado por en 25 marzo, 2012 en Mobile

 

Etiquetas: , , , , , ,

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s

 
A %d blogueros les gusta esto: