Learn How to Add Geocoding Lookup in Your App With Server-side JavaScript

pablo (12)

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 Appery.io 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 = "https://maps.googleapis.com/maps/api/geocode/json";

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:

https://api.appery.io/rest/1/code/540cb503-f9a7-4dd1-8926-af959383e2b2/exec?address=Boston

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

geolocation_result

Invoking 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.

Can I Build [insert type] App With Appery.io?

ionicapp_myapp

“Can I build [insert type] app in Appery.io?” is probably one of the most common questions that we get. The answer is almost always yes, but I want to provide you with a more detailed answer.

Appery.io provides tooling to allow you to build and run hybrid mobile apps. You can build virtually any kind of app supported by the underlaying technology stack: HTML, JavaScript, CSS and Cordova (for native device access), plus REST APIs. The platform provides tools and a runtime to make it simpler and easier to build your app.

  • App Builder – for building the app (client).
    • Apache Cordova is installed in every app and gives you access to device APIs such as the camera.
  • Cloud Build – for packing the app for iOS or Android.
  • Backend Services
    • Database – cloud database for storing any app data.
    • Push Notifications – for sending targeted Push Notification messages.
    • Server Code – for coding any server-side logic using JavaScript.
    • API Express – for integrating with external/enterprise systems.
  • Appery.io Tester app – for fast testing of iOS and Android apps built in Appery.io without installing them directly on the device.

The platform provides you with the tooling and runtime services, which you would need to build a successful app. Having said this, the actual app logic still has to be coded or developed. For example, let’s say you want to send a Push Notification and email when a new users registers, and also record the activity into an external relational database. You can easily build this flow/logic in Appery.io.

  • The app UI (pages, navigation) is built in the App Builder.
  • The Database has built-in user management capability. This means you can register a new user and do a login/logout.
  • When a new user is created, you can write a Server Code script to send a Push Notification message and use email API (such as SendGrid) to send an email notifying people about this event.
  • Using API Express you can connect and expose a relational database via REST API. When a new user registers, you can invoke the API and record this event (registration) into an external relational database.
  • Using the Appery.io Tester app you can quickly test the app on the device (without actually installing it) and test any native APIs.
  • After the testing, you can build and package the app for iOS or Android with Cloud Build.

In general, Appery.io is a perfect fit for building and running business and enterprise mobile apps. Another way to look at our platform is that it is ideal for creating content or data-drive apps. You can also find the term form-based used sometimes. We don’t recommend to build apps that are heavy on graphics. This is not a Appery.io limitation, but a limitation of hybrid apps in general.

We hope this blot post clarifies what kind of apps you can build with Appery.io. We many videos on our YouTube channel to help you learn how to build apps to check out the channel.

Here is another blog post that talks about this topic: What Kind of Apps Can You Build with Appery.io?.

 

Video Tutorial: Creating an Ionic App with a Backend and an External API

Our friends at Ionic Framework published a very nice tutorial on how to build an Ionic app with an external API. We figured it would be a good idea to show how to build the same app in Appery.io. In this 8-minute video tutorial you will learn:

  1. How to build a simple Ionic (version 1).
  2. How to create a mobile backend for the app.
  3. How to invoke an external API.
  4. How to test the app in the browser.

The final app shows a list of people loaded from an external API:

Screen Shot 2016-04-21 at 12.07.57 PM

Ionic app

Want to learn more? Check out many other short videos on how to build mobile apps fat on our YouTube channel.

Learn How to Expose a SQL Database via a REST API in 5 Minutes

This video shows how to use the Appery.io API Express visual editor to connect to a SQL database and expose it via a REST API. The SQL component is used to connect and execute a custom SQL query.

Watch other videos how to use backend services to build apps fast.

Video: Convert a SOAP Service Into REST API in 5 Minutes

This 5-minute video shows how to convert a SOAP service into a REST API using API Express. Once you have a REST API, you can easily build a mobile app with that API.

Learn how to use the Appery.io Backend Services from our short videos on our YouTube channel.

What Does It Mean To Be “Mobile” In Your Organisation?

“Going mobile” is more than just having a website—it means a whole load of things. It’s about reaching and engaging with your members in a new way, and offering your members a different way to receive information; making information accessible at any time and in any place.

While a website may provide information for your members, you also want to have a way to get your members talking to each other and joining in events and activities. We are in a society where we are constantly looking for up-to-date information, mobile apps provide us with this and our phones are within reach at all times. There are numerous angles your non-profit can take when it comes to creating a mobile app, some opt for informational such as The Red Cross, which provides weather alerts to help citizens better prepare for potential natural disasters. But, for your non-profit organisation, being mobile can mean any of the following things:

  • Mobile Web—optimising your website, content, and donation forms for mobile devices.
  • Mobile messaging— increasing your communication with your members, co-workers, and donors via text messages.
  • Online donations/text-to-give—providing a way for your members to donate through their mobile devices via a mobile optimised online donation form or website, or by texting a donation directly to your organisation.
  • Mobile Apps—creating your own customised application for your members to download to their smartphones or tablets for easy access.

Read the rest of this entry »

Looking To The Future – What Is 5G?

150518144020-5g-wireless-table-780x439

It doesn’t seem that long ago when the first 4G smartphone hit the market, yet the wireless industry is already preparing for 5G. As each of the four worldwide mobile phone carriers are getting ready to bring us 5G, smart phone chipmakers, and major network equipment companies are joining the race to provide their customers with the “ultra-fast” 5G network.

However there are numerous hurdles which the industry will have to jump over before we will be seeing the 5G symbol on our smartphones any time soon. The reasoning for this? It has yet to be decided what 5G even means, let alone what it will look like when it finally arrives. What we do know is that 5G will soon become a necessity.

Read the rest of this entry »

Is Your Company Ready for the Upcoming App Explosion?

It’s fair to say that we are about to experience a significant app explosion in the enterprise, and most organizations won’t be ready for it. According to Gartner the average enterprise will develop 1400 mobile apps by 2024!  Since most of these apps will be custom, the total number of apps will be in the millions, dwarfing the explosion we’ve experienced in consumer apps over the last few years.   Most IT leaders are already feeling pressured from the businesses and if you haven’t yet, you’re about to….

In this podcast and post, I explain the reasons for this explosion and what enterprises should do to be ready. Review Appery.io’s infographic or download Apperian’s Enterprise Mobile App Trends Report to learn more.

Here is the full podcast

Read the rest of this entry »

In Case You Missed: Getting Started with App Builder for jQuery Mobile Apps

This is the second webinar in our 2016 webinar series and introduces you to the App Builder and how to build apps with jQuery Mobile.

In this video you will learn:

  • How to create a new jQuery Mobile app
  • About various views inside the App Builder
  • How to use the Cordova Geolocation API to get the current device location
  • How to invoke the Uber Product API from Server Code
  • How to integrate the Uber API into the app
  • How to test and share the app

Check out this video now:

To learn more how to build apps fast, go to our YouTube channel.

Java SDK is Now Part of API Express

With one third of developers using Java, we have now added an Enterprise Services Java SDK to our API Express platform to increase the performance and customisation of your app. Our Java SDK is composed of:placeit-2

  • Enterprise Service Java API – this allows you to use appery.io features from the Java code
  • Enterprise Service Maven Plugin – allows you to verify, compile, test, package and deploy service code to API express.
  • Enterprise service test – allows you to write unit tests for the service.
  • Enterprise Service Templates – provides sources and templates for you to use.

We have made this addition to our API Express to allow you, the user, to increase customisation. Before you were limited to what kind of services you could build with the Service App Builder Graphical tool. You are currently unable to connect to the LDAP, and when you can you will most likely be unable to connect to some proprietary enterprise systems. Therefore, Java SDK allows you to build a java service of any complexity due to our additions of: Apache Camel and Spring framework, java programming language and it’s third party libraries, frameworks, and tools, as well as the Enterprise Services Java SDK to enable you to reach our appery.io features including push notifications, security, appery.io database and server code, data sync, and many more.

Read the rest of this entry »