Build a Serverless “Hello World” Function

Serverless, Function as a Service (FaaS) or just cloud functions allows you to write code that will run in the cloud. You can use a number of different languages such as JavaScript (Node.js), Swift, Python, Java, PHP and others to write the function code.  What’s nice is that you don’t need to worry about servers, containers, deployment, etc. You write the code and a cloud platform will make sure it executes!

In this blog post you will learn how to build a Hello World function. You will use IBM Cloud Functions to build and run the function (more information about this at the end). For now, let’s jump to creating your first function.

Continue reading “Build a Serverless “Hello World” Function”

How to Add Geocoding Lookup in Your App in 5 Minutes

Let’s say you are building a mobile app where you enter an address and need to get back the location as latitude/longitude information. To do this in Server Code is super simple. Here is a Server Code script that looks up an address and returns the latitude/longitude information for the location using the Google Geocoding API:

var address = request.get("address");
var url = ""; 

var XHRResponse = XHR2.send("GET", url, {
   "parameters": {
      "address": address,
      "key": "AIzaSyAFQBtqmC.........."

var responseInJson = JSON.parse(XHRResponse.body);

Apperyio.response.success(responseInJson.results[0].geometry.location, "application/json");

When you run this script, the result looks like this (using Boston as input):

   "lng": -71.0588801,
   "lat": 42.3600825

The script has an API which you can invoke from your app:

Here is an example invoking the script directly from the browser:

Screen Shot 2016-04-13 at 12.34.54 PM
Invoking the Server Code script

With geolocation logic on the server, you can change the implementation — for example use a different API without making any changes to an app and impacting the users.

Want to learn more? Check out the large collection of videos we have on our YouTube channel.

How to Add a Nice Popup to Your Ionic App

Using browser’s alert() is quick way to test something but it doesn’t create good user experience. This is how the standard browser alert looks:

Screen Shot 2015-10-13 at 1.06.15 PM
Standard browser alert

Continue reading “How to Add a Nice Popup to Your Ionic App”

Learn How The Conservation Council of New Brunswick Built an App to Promote 300 Local Farmers and Producers


About the CCNB

Located in New Brunswick, the Conservation Council of New Brunswick (CCNB) is a registered Canadian charity. They focus on environmental education and community engagement and provide research and offer solutions to protect the health of Canada’s environment.

As a non-profit charity, the CCNB is overseen by a Board of Directors and operates day-to-day with a staff consisting of an Executive Director and a small core of full time employees. Continue reading “Learn How The Conservation Council of New Brunswick Built an App to Promote 300 Local Farmers and Producers” Platform Update: Social Login, LDAP Integration, Offline Support, New Ionic Components, Angular Scope Editor


The team has released a number of awesome platform updates. These updates include:

  • Social login and LDAP sign-on for apps
  • Offline capability in apps using the internal database or an external one
  • New Bootstrap and Ionic components
  • Outline page component view

Keep reading to learn more about what’s new in

Continue reading “ Platform Update: Social Login, LDAP Integration, Offline Support, New Ionic Components, Angular Scope Editor”

Mobile App Development Choices

A great post from the PhoneGap team on different choices to be considered when choosing a mobile strategy. The article reviews five mobile app approaches:

  1. Native Mobile App
  2. Web Mobile App
  3. Hybrid Mobile App
    1. Web hybrid mobile apps
    2. Native hybrid mobile apps

Read more

How to Build and Deploy a Complete Mobile App with Appery io and Instant API

This webinar recording shows how to build and deploy a complete hybrid mobile app with and Instant API.

Quickly Add Payments to Your App with PayPal API [Video]

This video shows how to add payments to your mobile app using PayPal API.

Setting Up SendGrid API in

Setting up REST services in is super fast, and using the popular SendGrid API to send emails is no different. Here is an example setting up a REST service to send emails, all done in about four minutes.

Setting up service URL

Screen Shot 2014-05-13 at 10.19.22 AM
Setting up SendGrid API URL

Setting up request parameters

Screen Shot 2014-05-13 at 10.19.37 AM
Setting up request parameters

Testing the service

Screen Shot 2014-05-13 at 10.19.49 AM
Testing the service

Setting any cloud API is as easy.

One last step is to define the service response. This can be done automatically from the Test tab by clicking Automatically Create Service Response button.