UXDE dot Net Wordpress Themes

Parse Takes Mobile Development A Step Further With Cloud Code [Video]

in Mobile / No Comments

Parse is taking its platform to the next level by introducing a powerful new service called Cloud Code.

Cloud Code makes Parse a one-stop shop for mobile app development by pushing the boundaries of server code. You can now add custom validations and endpoints that are instantly and easily accessible by any client, whether it’s iOS, Android, HTML5, or via the REST API. You get all of the power of the Javascript SDK running on the Parse cloud.

For example, if you were building a restaurant review app, you’d probably want to display the average star rating for a venue. Instead of grabbing all the reviews and averaging them on the client, you could specify a custom endpoint:

Parse.Cloud.define("averageStars", function(request, response) {

var query = new Parse.Query("Review");

query.equalTo("restaurant", request.params.restaurant);

query.find({

success: function(results) {

var sum = 0;

for (var i = 0; i < results.length; ++i) {

sum += results[i].get("stars");

}

response.success(sum / results.length);

},

error: function() {

response.error("Restaurant lookup failed");

}

});

});

All your clients would immediately have this functionality available to them. Furthermore, if you wanted to use a more sophisticated averaging algorithm, you would be able to alter it without having to update any code in the client.

There are already over 35,000 Parse-powered mobile apps on tens of millions of mobile phone.

Leave us your comments…

An innovative and dynamic marketing expert having worked for both local and multinational organisations,having expertise in leading diverse assignments on devising digital/social media marketing strategies, promotions, public relations and business development. As an experienced social media strategist and business analyst, he manages several brands via his 2nd Startup Hybrid Signals (www.hybridsignals.com) Samir is an award winning technology and social media blogger and can be reached at [email protected]

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>