RMD (Rapid Mobile Development) with Telerik AppBuilder

As a developer coming from a web development background with a partner who’s asking for an immediate mobile application, my best choice was Telerik’s AppBuilder. There are 2 types of mobile app that you can build with AppBuilder. First is a Hybrid Mobile App and second is Native with Nativescript.

My Experience

Building a Hybrid mobile app with AppBuilder is pretty straightforward, specially if you have Visual Studio 2015 installed on your machine. You just need to install a extension for  Visual Studio and your ready. There is a separate IDE but it comes with a price. And since I am on Visual Studio IDE for a very long time, I opted in installing the extension.

After installing the extension, I can now run my code via a built-in simulator.

AppBuilder.png

It just took me a month to complete a full LOB Hybrid Mobile app with AppBuilder. Now we nudged the bar  up and move to native development this time with NativeScript.

The second app that we developed was for a university in california and we want a native look and feel. Our choice? Nativescript with AppBuilder. The language we use? Javascript. For the UI? XML. And how long did we create the app? 1 Month.

Why go native with Nativescript? Its much faster than the Hybrid of course and here are the good parts:

  1. It supports Javascript and Typescript
  2. You can apply the same styling as you would on Hybrid and Web apps.
  3. Wide array of plugins such as camera, calendar, barcode scanner, etc.
  4.  Active community.
  5. End to End development with AppBuilder. I was able to develop the native app without a mac. Just iTunes for deploying the package on my phone.

I will write a blog later on on how you can build hybrid and native apps with the AppBuilder.

For now, I just want to entice you with the good things that AppBuilder can bring on to your mobile development project.

Right now we are on our third project and we still use Telerik AppBuilder.

 

Advertisements

Code Coverage with Chutzpah

There was a question in stackoverflow on how to do code coverage in JS with Chutzpah. This is just a short blog on how I did it.

1. First download Chutzpah from codeplex.

Chutzpah

 

2. Now extract it and do the following.

– I extracted chutzpah in the below path.

ChutzpahLocation

– And the location of my js files is here.

UnitTestsLocation

– So, below is how I do code coverage using the chutzpah’s console.

doing_the_console

– And yes of course the result.

resultOfChutzpahCodeCoverage

Nice isn’t it!!!

I will be bloggin everyday from .net,java,python,LAMP,MEAN and all other important topics. This is my way of challenging my self and not become stagnant with just 1 programming/scripting language.

Please also check my site www.francorobles.com if you want to know more about me.

 

Unit Testing JS with Jasmine and Chutzpah

Gone are the days where we will manually test our web sites specially if its using Javascript. Since the arrival of QUnit, Jasmine, and Mocha  the way we test the client side of our sites has changed. Now for this post I will be using Jasmine. Why Jasmine? Because, it support’s Ajax testing. I am not saying that you cannot test ajax results from the other 2 frameworks but Jasmine is just my favorite.

And if you want to integrate it with visual studio with a test runner, let’s use another open source tool

1. Okay first let’s add our test runner to visual studio.

– Go to Tools > Extensions and updates and search for Chutzpah

– Now you should see 2 results. The first one is the Test Adapter and the second is an addition to the context menu. Download them both.

Chutzpah

2. Lets get Jasmine using from Github.

– Go to your github command line and clone it from https://github.com/pivotal/jasmine.git. And add a reference to Jasmine into your solution.

gitclone

 

– Now that I have Jasmine, and with the help of Chutzpah. I can now create a simple test run in test explorer.

Testexplorer

 

Now, how about that? Easy isn’t it? As I said before, you can even test your ajax requests with Jasmine. The beautiful part is with the help of Chutzpah, I was able to load all these javascript test items into the test explorer. If you like my post, please go to my site as well www.francorobles.com.