Appery.io Newsletter (February 2017)

Posted: March 21st, 2017Author:

Our February 2017 newsletter.

Learn What’s New in Our March Platform Update

In early March we rolled out a second platform update for 2017. The update includes these features and benefits:

  • Improved Autocomplete in App Builder for Ionic
  • New Ace Editor in Server Code
  • Instantly Import Any Database Service into an App
  • Better Developer Experience for Testing APIs inside the App Builder and API Express
  • API Express Autogenerated Services Now Support Sorting by Multiple Parameters
  • API Express Database Connection Now Supports Custom Properties
  • Cloud Database Upgrade

Learn more about these new features and benefits in our blog post.

22 Things You Need to Know about Appery.io Server Code

Appery.io Server Code allows you to write app logic with JavaScript that is executed on the server. Custom app logic is placed inside a Server Code script which is than invoked as a REST API from a mobile app. In this post you will learn everything you should know about Appery.io Server Code.

Video Tutorial: How to Call the WordPress REST API

Watch this short video to learn how to call the WordPress REST API from an Appery.io app. The video shows two approaches invoking the API. First, it shows how to invoke an API using API Express. Second, it shows how to invoke an API from Server Code.

New Step-by-step Tutorials

Our friends at WEALL published two great step-by-step tutorials on how to build apps with Appery.io. Check them out:

Learn How Dyjit Launched Their App for a New Hospitality Platform Using Appery.io

Dyjit’s vision is to make life better by introducing digital experiences where they do not yet exist. Dyjit’s first product, knowye (know what you eat), is a hospitality platform that transforms the traditional paper menu into a digital marketing channel and enables restaurants to cater to and market to shifting consumer needs. Learn how this app was built.

March Platform Update: Improved Autocomplete, Ace Editor in Server Code, Improved API Testing and More

Posted: March 6th, 2017Author:

Learn about our March platform update.

Improved Autocomplete in App Builder for Ionic

Autocomplete is one of the most-loved developer features. You don’t need to remember the variable name, can quickly insert it from the autocomplete list and more importantly it reduces errors. The App Builder for Ionic now has an improved autocomplete feature, it is now available for any property in the Property panel. Simply click Ctrl+Space to see the available values.

appbuilder_ionic_codeassist

New Option to Specify Custom Database Connection Properties in API Express

New Ace Editor in Server Code

Appery.io Server Code source editor has been upgrade to the poplar Ace editor. The new editor provides the following benefits:

  • Improved code snippets to help you write code faster by inserting common code snippets with just a click.
  • Advanced and more powerful code assist to help you write your code faster.
  • Big performance upgrade when working with large source code files.
  • Better error reporting.

servercode_aceeditor

Read the rest of this entry »

22 Things You Need to Know About Appery.io Server Code

Posted: March 2nd, 2017Author:

servercode_push

Appery.io Server Code allows you to write app logic with JavaScript which is executed on the server. Custom app logic is placed inside a Server Code script which is than invoked as a REST API from a mobile app. In this post you will learn everything you should know about Appery.io Server Code.

  1. Server Code is a server-side component in the Appery.io cloud platform.
  2. The code (logic) is placed inside a script which is executed on the server.
  3. You can write any custom app logic (you have access to most JavaScript APIs).
  4. The language used to write the Server Code script is JavaScript.
  5. A script is invoked as a REST API from a mobile app.
  6. A script can be tested (invoked) inside the Server Code dashboard.
  7. A script can depend on one more more libraries. A library is a reusable script (JavaScript code also).
  8. A script can connect and query the Appery.io Database.
  9. A script can send, manage and schedule Appery.io Push Notificationsa.
  10. A script can connect and invoke any 3rd party (external) REST API.
  11. A script can be secured with a username and password.
  12. A script can be scheduled as Job to run periodically and on schedule.
  13. A script can invoke another script.
  14. You can create versions of a script.
  15. A script has very fast cache called In Memory Data (data lives for 20 minutes).
  16. A script can be invoked from Appery.io API Express service flow.
  17. The script editor comes with Snippets, small reusable code which can be quickly inserted into a script.
  18. Server Code comes with Plug-ins. Plug-ins are scripts and libraries that can be quickly inserted and provide specific functionality such as integration with 3rd party APIs.
  19. A script has a Trace page where you can view console and error messages from script execution.
  20. A script has a Statistics page where you can view various statistics about a script such as how many times a script was invoked.
  21. A  script has a description field which can be invoked via a separate REST API for documentation purpose.
  22. The JavaScript engine used for Server Code is Nashorn.

Want to build your first app? Sign up for a free trial account in seconds.

Watch the Server Code YouTube playlist to learn more.

Appery.io Newsletter (January 2017)

Posted: February 24th, 2017Author:

Our January 2017 newsletter.

Big Platform Upgrade: iOS 10, Cordova Update, Automatic APIs Sync and More

At the end of January we had a big platform update with new upgrades and benefits:

  • iOS 10 Support
  • Apache Cordova Upgrade
  • Automatically Sync Backend Services Changes with the App Builder
  • Organize with Folders Inside the App Builder
  • Backend Services APIs Are Now Placed in Folders for Easier Organization
  • Improved Media Manager
  • Improved Synchronization Between App and Server for Apps with Offline Support
  • New Page to Test API Express Services and Offline Support
  • New Auto-login with Offline Support

Learn more about this platform update from our blog.

Exposing a SQL Database via REST APIs: A Video Guide for Developers

Many organizations that are building mobile apps need to connect to and reuse existing internal systems. One of the most common such system is a relational (SQL) database. The following two videos show how to connect and expose a SQL database via REST API using API Express:

Appery.io + Pollfish: How to Integrate a Pollfish Survey into Your App

Our friends at Pollfish, a survey platform company, created a guide to help you monetize Appery.io apps with Pollfish surveys. Integration takes only a few minutes and can boost your revenue up to 20x more compared to any other traditional advertising format out there. Check our the easy-to-use integration guide.

Learn How Appery.io Ensures API Express and Server Code On-demand Deployment

Read this awesome (and technical) blog post by our Dev Ops Engineer Ruslan on how he ensures API Express and Server Code support on-demand deployment and can be scaled instantly for any platform traffic.

Can You Build a Conference Room Booking App Using Appery.io in 16 Hours?

Yes. Exadel, the parent company behind Appery.io, with over 800 employees and 7 worldwide offices built a Conference Room Booking App using Appery.io in 16 hours. This app helps with the well-known problem of double-booking conference rooms and then looking confused when someone is there when you need to have an important meeting. Learn more about this app.

Exposing a SQL Database via REST APIs: a How-To Video Guide for Developers

Posted: February 21st, 2017Author:

apiexpress_sql_component

 

Many organizations that are building mobile apps need to connect to and reuse existing (internal) systems. One of the most common system is a relational (SQL) database.

We have prepared two short videos that will show you how to do that using Appery.io API Express.

API Express connects to a relational database and exposes the database tables via REST APIs. Once the APIs are created, the mobile app can easily consume the APIs.

There are two approaches exposing a database:

The first approach automatically generates CRUD-like APIs to work with a database table. In many apps, this is close to 80% of what an app might need. This automatic approach also comes with very sophisticated offline support. In other words, you app can work offline and sync data with a remote database when a connection is reestablished.

With the second approach, you get full control as you write the actual SQL query (or Stored Procedure) that will be executed. With this approach, you can use a visual service editor to orchestrate the REST API. In addition to the SQL component (connector), you can use connectors such as Web Service (WSDL), REST  and others.

Check out the API Express video playlist to learn more.

Appery.io + Pollfish: How to Integrate a Pollfish Survey into Your App

Posted: February 10th, 2017Author:

Our friends at Pollfish, a survey platform company, created this guide to help you monetize Appery.io apps with Pollfish surveys. Integration takes only a few minutes and can boost your revenue up to 20x more compared to any other traditional advertising format out there.

pollfish-survey

Check out the steps below to create a Pollfish app and integrate it with Appery.io Ionic app.

Read the rest of this entry »

Ringing in 2017 With a Big Platform Update: iOS 10, Cordova Update, Automatic APIs Sync and More

Posted: January 29th, 2017Author:

We are happy to share that we starting 2017 with a big platform update. Read this blog post to learn what’s new.

iOS 10 Support

This update brings full iOS 10 support. This means when you build a binary app for iOS, it should run on an iOS device running version 10 without any problems.

ios10

This support is possible with Apache Cordova library update.

Apache Cordova Upgrade

In order to provide full iOS 10 support, we have upgraded the Apache Cordova library. The latest Cordova library for iOS is version 4.3.0 and for Android is 5.2.2. This update brings many bug fixes, improvements to Cordova. Your hybrid app will be just a little bit better and that’s good. Please read the technical release notes about this update.

The Appery.io Tester app will also be updated with the new Cordova library. Read more about it here.

Automatically Sync Backend Services Changes with the App Builder

Integration between the App Builder and Backend Services is one of the core values in the Appery.io platform. Importing API services into an app is very simple:

backendservices_import

Now, if you made any changes to the backend APIs, you had to either manually update the service in the App Builder or delete the service and then import it again. These approaches are not very good so with this update we are introducing an automatic sync feature between the App Builder and Backend Services. When you update a backend API service, simply click the Check for update button to update the service in the App Builder.

servercode_sync_update_button

This is very nice as you no longer need to make manual changes or even delete the services. Right now this feature is available only in an Ionic app but we are planning to add this support to a jQuery Mobile app as well.

Read the rest of this entry »

How to Search the Database by Date From Server-side JavaScript

Posted: January 19th, 2017Author:

clock

Searching or querying a database is one of the most common actions in a mobile app. Appery.io platform provides a cloud database to store any app data and Server Code that allows to write any server-side app logic using JavaScript. Server Code has an API to query the database that makes it easy to perform search queries based on a date. In this blog post you will learn how to write a script to query a database collection using dates.

To start, we need to create a sample database collection. Our collection looks like this:

Database collection

Database collection

The collection has two built-in date columns:

  • _createdAt – the time when a record was created
  • _updatedAt – the time when a record was updated (default value is set to _createdAt)

and two custom columns, both are of Date type:

  • startTime
  • endTime

You can of course include any other data.

Now let’s get to the code.

The first code examples shows how to query by using the built-in fields (_createdAt or _updatedAt).

This search query will return all objects where the _updatedAt date is less then ($lt) the current time (when the script runs).

When using one of the built-in data types in a query (_createdAt, _updatedAt), the date value must be formatted in ISO format. When using a custom column with Date type, using ISO format is not required.

The next code examples uses a custom endDate column (type Date). Note that the syntax to use the built-in date column (above) and a custom column is slightly different:

This query returns all records where the endTime is less than December 31, 2016. Based on data in the collection, only the record that contains tablets will be returned. This is how the response looks:

Let’s now look at another code example where we will use the startTime and endTime together.

In the following code snippet we query for all objects where the startTime is greater than December 31, 2016 and the endTime is less then February 1, 2017.

Querying the database by dates or any other columns is best suited for server-side logic as you can test the script and ensure it works before using in an app. Moving this logic to the client would only complicate the app and make it more error prone.

Once the Server Code script is tested and read you can import the service API for it inside the App Builder. This short video shows how to import a backend service. To learn more about Server Code, watch the Server Code YouTube playlist videos.

Convert Phone Numbers Into Real Business Intelligence with EveryoneAPI

Posted: January 18th, 2017Author:

old_telephone

EveryoneAPI by Telo allows to convert a phone number into real business intelligence with a simple API request. The complete reverse phone append product is simple to use, yet powerful and built for developers by developers. As you probably already know, integrating with any 3rd party REST API using the Appery.io Server Code is also simple. In this blog post, I will show you how to invoke a test a script that calls the Everyone API.

To start, create a new Server Code script with the following code:

The only thing you need to do, is to replace the auth_token and account_sid with values from your account. Sign up for an account here. It’s fast and simple.

The phone number for which you want to get information is passed as a parameter to the script (line 1). To test the script, switch to Script parameter tab (on the right side), enter a parameter called telephone and then set it to a test value. Here is an example testing the API using the Appery.io telephone number:

Testing EveryoneAPI

Testing EveryoneAPI

Once you finished and tested the script, you easily import into your app. This video shows how to do that.

Looking for more APIs by Telo? Check out the CallerID Server Code plug-in:

callerid_servercode_plugin

OpenCNAM plug-in

This plug-in creates a Server Code script that integrates with OpenCNAM API. The OpenCNAM API allows you to get caller ID information for phone number provided.

Appery.io Newsletter (December 2016)

Posted: January 17th, 2017Author:

Happy New Year!

Platform News

Our Apache Cordova library update with iOS 10 support is coming by the end of January. Please check if you need to update the jQuery Mobile App Library version in your app before this update.

Appery.io Mobile Resources You Should Know in 2017

To help you build mobile apps faster in 2017, we have published all the Appery.io resources you should know about and use. Check out the list here.

A Quick Guide to Using Geolocation in Your Mobile App

We published two short videos that show you how to set up and the use Geolocation API in jQuery Mobile and Ionic apps.

GoCodes Extends Asset Tracking Solution to Android Devices with the Help of the Appery.io Platform

GoCodes provides a complete patented asset and inventory tracking solution that harnesses the power of cloud-based software, smartphones, and QR codes. When GoCodes launched in 2012, their mobile apps were limited to HTML5 browser technology and lacked the power and ease-of-use of true mobile apps. Learn how GeoCodes built a native app with Appery.io.

Appery.io Platform Overview: A Guide for Mobile Developers

Learn about Appery.io platform features and benefits from this short video. This is a great guide for mobile developers, whether they are existing Appery.io developers or just starting out. Watch the video now.

Appery.io Videos

We have close to 200 short videos conveniently organized into playlists. Check them out.

Learn How to Use Server Code Snippets

Learn how to use Server Code Snippets for faster server-side JavaScript development and learn about the new FullContact API integration.