In this tutorial you are going to build a Hello World app with Ionic in Appery.io. This is how the app is going to look:

You should finish this tutorial in about 10 minutes.
Appery.io account
The first step is to sign up for an Appery.io free trial account. If you already have account then you can skip this step. Appery.io provides a visual App Builder for building apps with Ionic. This means it’s very easy and fast to build Ionic apps.
Creating a new Ionic app
Let’s now create a new Ionic app.
- Inside the platform, go to Apps tab (if you are not there already).
- Click Create new app.
- For app name enter: ionic-helloworld.
- Select Ionic AngularJS app and click Create. In a few seconds the App Builder for Ionic will load.
That was easy.
Designing the page
Now let’s work on the app UI. As this is a Hello World app the UI will be pretty simple.
- First, open the index page.
- Click the header, then in Properties change Text property to Hello Ionic.
- Now open Screen1.
- Select the Card component (from the Palette) and drag and drop it inside the phone area.
- Click the header and in Properties change the Text property to Hello World.
That’s all you need to do here for now. You will change the Item text label in a few minutes. Your page should look like this:

Setting up page scope
Now you are going to setup the scope for the page. This is also going to be very easy.
- Switch to Scope tab.
- You will now create one variable. At the top of the Scope editor enter a new variable called message and click the Add button. Its type should be String (the default value).
- Now open the init function by clicking the Edit button.
- Enter the following code:
$scope.message = "My first Ionic app. That was easy.";
- Click the Save button in the toolbar. You can also click Hide to close the function editor.
Good. The next step is to bind this scope variable (message) to the page.
Also, as you put the code inside the init() function, the function will be automatically invoked when the page loads. You don’t have to add any events to invoke this function in this example.

Setting up binding
In order to display the message in the page you need to bind it to the scope variable. Here is how to do it.
- Go back to Design tab.
- Select the card item area (where it says Item text).
- Go to Properties for the Text property set: {{message}}.
- You can also try using code assist. Type {{}} and place the cursor in the center and click Ctrl-Space to invoke code assist.
You are actually done and ready to test the app.

Testing the app
Testing the app is fast and simple. Simply click the Test button in the toolbar. A new browser will launch with the app that you just built.

Testing the app on the device
You can also test the app on the device. To test on the device first download and install the Appery.io Tester app for iOS or Android. Then use your Appery.io username/password to sign in. You will see the app you just created. Tap the app and it will be launched on the device as a hybrid mobile app.
What’s next?
Check out the Appery.io YouTube channel for videos on building hybrid mobile apps with backend services.
Leave a Reply