Ionic Restaurant Sample App

Check out our sample Restaurant App to build your own restaurant business app.

Introduction

This document describes our sample Restaurant App that is designed to grow into the perfect app choice for your restaurant business.

As a bonus, we provide detailed explanations for those who are interested in customizing the offered app sample.

Using Restaurant App Template

No special knowledge or experience is required to use our Restaurant App template — just follow the simple steps below to install the app and enjoy the results of low-code development with Appery.io!

📘

Important!

Please rest assured that you are the creator and you are the only owner of this application (actually, like any other app created with Appery.io).
For more details, you can check our Copyright, Trademark, and Content Ownership section here.

👍

Besides, many customization options are available like renaming the app, changing the template color themes, launch icons and screens, customizing app pages, etc.
If interested, check out the instructions in the Customizing App section.

Creating App from Template

👍

NEW: One-Click Template Installation!

You can now enjoy the one-click-away option of installing the template app: simply click the button below and in a moment, your app is ready to start! There’s no need to go to the Create new app dialog or download the template backup with further installing it.

Create in Appery.io

In a moment, the app is created and the first thing you can see is our App Builder Educational Video Guide page with the Project View section on the left where all the predefined project data can be found.

1592

Actually, the application is ready and you are really close to releasing your own restaurant app.
But before you can start with customizing it, you are free to check out what this app is about. This sample app is quite simple to operate and requires no special knowledge.

Creating App from Plug-in

Alternatively, you can create this app using our predefined Restaurant App template.
In this case, all the needed pages are added to the existing blank app with the Screen1 preset to the default route. So, you will need to modify the routing rule and set the Tabs page as the default route under Routing. You can also delete the Screen1 page if you do not plan to use it:

1579

App Description

Click the TEST button in the app Toolbar right now. Once loaded, the application Home page will launch in the preview. You can see the restaurant logo, some generic texts, and three photos that are arranged as slides and displayed as you swipe them on the screen:

415

The three Tabs buttons in the footer allow browsing the app pages: Home, Menu, and About Us (left to right).
As an app user, you can start right away opening the Menu page and reviewing the offered meals listing. On the screen, multiple meal cards are displayed so that you can browse for the meal you are interested in. Every meal card features its name, image, price, and some short description:

468

You can now select the meal you like to view its card where the meal's name, image, price, and some additional details are placed:

1414

You might also like to check out the About Us page with some generic information about the place:

377

Customizing App

It is natural that being a sample, our Ionic Restaurant Sample App offers many customization options. So, if you are interested in customizing this sample app, we highly recommend that you check out the instructions in this section.

👍

Note that our Services Team will be happy to assist you in building the application you need. So, if you require professional help with additional customizing or debugging your app code and/or logic, you can consider purchasing one of our Support Packs to get the highest priority support.

Renaming App

The first thing you might like to do to make your app unique is rename your project.

  1. To do it, you will first need to exit the App Builder so click the CLOSE button in the top app Toolbar:
418
  1. After that, you will be redirected to the Apps tab with the information about your Appery.io projects, their saved versions, people with whom you share the project, and about hosting on Appery.io. Here, click the app Rename button:
1229
  1. Now, in a new window, provide a new app name, for example, My Restaurant App and confirm this change:
266
  1. In a moment, the Apps tab will be updated with a new app name and you can click Open to proceed with customizing your own application:
1232

Reviewing General App Structure

When the app reopens in the App Builder, you will see that this app was created with Ionic and has multiple folders comprising a set of organized pages and SCSS resources all of which can be customized as per your needs and app requirements. You can unfold any of them to see what resources are available:

215

Every file or folder in the Project tree was created using our App Builder and we will now give you a little background of how you can customize the template resources.

Customizing App Pages

Opening the Pages folder, for example, will allow you to customize the individual app pages' UI and behavior. The easiest is changing text so let's have a closer look at how this can be done.

Customizing Home Page

Changing Text Property

With Appery.io, not only can you easily change the name of your application, but you can also modify any text on any page in the suggested template.

Let's review the example with changing the text of one of the Home page UI components.

  1. First, select the Home page on the Project tab list located to the left of the mobile phone frame. The page will open in the DESIGN panel.

📘

Adjusting Screen Size

Note that you might need to switch to the comfortable screen size (depending on your monitor) XS, SM, MD, LG, XL to see the whole page.

  1. Select the text instance you would like to modify, for example, the text for the page Header Toolbar Title.
  2. The PROPERTIES panel for that component will be shown on the right where you can locate its Text property.
  3. Now, you can simply modify the text value, for example, modify the default Your Restaurant Name and rename it to My Restaurant and this change will be automatically reflected in the UI:
1593

📘

Using Breadcrumbs

You might have noted that there are the breadcrumbs above the phone frame: they are often used for easy navigation between the parent/child components.

  1. Now, when you click TEST once again to reopen the app Home page, you will see that the preview has also been updated according to the recent change made:
466

👍

Tip!

Any text instance can be similarly customized under the PROPERTIES panel:

1429

Adding Custom Banner Images

The app template ships with three predefined slides containing one child image each and all of them can be easily adjusted to meet your business needs as not only can you change the existing app texts: you can also quickly add/modify as many app banner images as you need. The easiest way to do it is by using the cloning option since this will allow creating both the Html component and its child Image: those will become a template for a new slide for your gallery.

1, So, first of all, open the OUTLINE view, unfold the Slides folder and select the Photo1 component. Now, using the Context menu select the component's Clone option to get its copy:

1580
  1. The cloned Photo1_copy with the nested ImagePhoto1_copy will be instantly created. So, select the ImagePhoto1_copy component and upload the needed image file (should be prepared beforehand) by clicking the Change button and using the Media Manager:
1580
  1. When uploaded, apply it as a new app banner image:
800

👍

Tip!

By default, all cloned UI components are named after their original instance with the added _copy extension.
You might like to rename them (including their child components) to some more meaningful names, for example, ListItem2_copy to ListItem3, etc., but this is optional and is up to you.
You are also free to arrange the order of the components listed in the OUTLINE view by using simple drag&drop:

1378

Ready! You can now check the updated home page:

354

Customizing About Us Page

It is also easy to customize all your text business information on the page: adjust your actual working hours, change contacts etc.:

1370

You are free to add more or modify the existing details and/or change/upload custom images by using our Media Manager:
To do that, select the generated Image component (ImageMap) and click Change for the Image property to upload the needed picture:

1574

👍

To apply the needed image, you will first need to upload it from your drive.

You might also like to delete the components you do not plan to use in this app page:

1008

Another great way to make your application stand out from a plethora of other apps is by changing the app color theme.

Customizing App Color Themes

You will be surprised to see how easy it is to completely change the looks of your app using our Theme Generator option.
To create a new theme, from the Project view, click CREATE NEW > Theme, select the option that looks closest to what you plan to have for your app and give it a name (or leave as it is, for example, Dark Theme):

1045

The new theme is created in the Theme folder of the Project tab and can be previewed and, if needed, modified:

974

👍

Theme Generator

Note that you can modify the theme template using the Theme Generator editor: you just need to select the main colors one by one and configure them using the color picker tool until you get the UI you would like your app to show on the screen.

You can try creating as many themes as you need before you decide which looks best.
Every app page has a Theme dropdown and you can try selecting other theme options from the dropdown to see how this specific page will look like under a different theme:

1301

👍

Important!

This dropdown works for page preview purposes only and if you decide to apply the selected theme to the entire application, set it as global or go to Project > App Settings> General and select the needed theme from the dropdown, for example, Purple:

1119

Now, save the app and click TEST again to see how the application looks like with a newly selected theme:

1663

Customizing Menu Page

Adding Custom Meals

Another exciting and one of the most useful features of this sample app is the option of adding custom meals' cards (with their images and all needed details) and that can be applied to your menu list and be opened in a separate meal card.

So, let's see how simple adding a new meal item to your Menu page is.

  1. In the app Project tab, select the Menu page and open its CODE panel.
  2. Now, click the blue button next to the dishes variable value and toggle the full-screen mode:
1556
  1. Then, copy the "Burger" (as a sample) piece of code and paste it below, then make the needed changes and save. We will be adding a sample "Cheesecake" meal:
962

You can use our sample code below:

,
{
    "name": "Cheesecake",
    "description": "Light and Creamy Cheesecake",
    "price": "$20.00",
    "picture": "assets/images/cheesecake.jpg",
	"rating": 4.9,
	"cal": "321 Kcal",
	"time": "6-8 min",
	"fullDescription": "Creamy, fluffy, easy cheesecake wrapped in a crunchy Graham cracker and toasted pecan crust"
}
  1. Then, toggle off the full-screen mode and save the value for dishes:
806
  1. It's almost ready, only adding an image of a cheesecake is left. So, let's go back to the DESIGN panel upload your custom file (or you can select one on the Media Manager images list):
1899

🚧

Important!

Make sure that the name of the uploaded image corresponds to the name indicated in the code (.../cheesecake.jpg)

As a result, a menu page will be shown with a new meal:

472

Also, if you click it, you will redirected to the meal card with more meal details:

476

Customizing App Launch Icons and Screens

In addition to modifying the appearance of the app pages, you are also free to replace the default launch icons and screens (iOS only) by using our Launch Icons and Screens generator (or upload your custom fonts by using the Files Manager).
It works similar to what was demonstrated in the Changing App Banner section: by clicking the Change button and using the Media Manager:

1251

Testing Customized App

Testing the app is fast and simple. All you need to do is simply click the TEST button in the top App Builder Toolbar.
The browser will launch with the app that you have just built.

470

Testing on Device

When your app version is ready, you might also like to test it on the device.

👍

Appery.io Tester App

A great option to quickly test the app on the device is to use our Appery.io Tester app.
The app is free and available for both iOS and Android.
You can check out this page to learn more about using the Appery.io Tester app.

422

Exporting App

When your final app version is ready, you might like to proceed with exporting your app for
Android or iOS with further installing it on a device.

📘

Selecting Build Type

Before you can proceed with exporting your app, go to Project view > Project > App settings > Android binary/iOS binary to select the Release build type (Debug is the default type for both and can be used for testing purposes only):

1092

Selecting iOS binary build type

👍

Important Note!

Please, note that before you can export the app, the app certificates must be imported or automatically generated (in the case of Android).
You can check this document in case you need help with exporting your application for iOS.
Here, you will find information on generating certificates for Android.
Note as well that starting from August 2021, new apps are required to publish with the Android App Bundle (.aab) on Google Play.
Please read more here.

  1. After the needed certificates have been added to your app all you need to do is to wait for the bundle to be created.

  2. Now, you need to select the format you prefer (you are also free to build both if you need): .apk / .aab or .ipa to start building your project:

422

🚧

Managing Build Error The certificate file is not set

If this is your first app created with Appery you will most likely get the error signifying about missing certificates that will prevent you from successfully finishing the build process.
The error reads similar for both binary types and indicates that you should set the corresponding certificate before starting a new build.
If this notification is what you see after starting your build, please check out the this document about the certificate management that explains how to add the needed certificate to your project.

  1. Once your project is generated, you will see the QR-Code that you can use to upload the application to your device (or save the .apk / .aab or .ipa file for further use).

  2. Then, install the app on your device and enjoy the result of your customization experiments:

4277

📘

Your app can also be published as a mobile web app. Check this link to learn how to do it.