---
updatedAt: 2025-07-15T08:39:34.000Z
agentTools:
  projectIndex: https://docs.appery.io/llms.txt
---

# Ionic Quickstart Database Tutorial

Ionic TodoList sample app for adding, editing, deleting, and updating items in a connected Appery.io database.

# Introduction

In this quick start tutorial, you’ll learn how to build a mobile app that displays a list of data from a cloud database. The app communicates with the database via a REST API.

<HTMLBlock>{`
<div style="border-width:1px;border-style:solid;width:377px;border-color:grey;">
      <iframe src="https://ionic5todolistappquickstart.app.appery.io/#/screen1" seamless="seamless" frameborder="0" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;height:667px;width:375px;top:0px;left:0px;right:0px;bottom:0px"></iframe>
</div>
`}</HTMLBlock>

# Before You Start

* Tutorial level: beginner; your first mobile app.
* Prerequisites: an [Appery.io account](https://appery.io/account/signup).

> 📘 Want to know more?
>
> You can also check our Appery.io Community video that shows how to create a *List Details* application with database integration using the Appery.io **[List Details](https://docs.appery.io/docs/apperyio-examples#list-details)** plug-in here:

<HTMLBlock>{`
<iframe width="610" height="315" src="https://www.youtube.com/embed/6B9UC8JfsLw" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
`}</HTMLBlock>

## Downloads and Resources

You can also try it yourself by creating from the [backup](https://appery.io/wp-content/uploads/tutorial-ionic5-todolist-app.zip):

1. Download the app backup file.
2. Click **[Create new app](https://docs.appery.io/docs/1-creating-an-app-ui-palette#creating-new-app)**.
3. Click **From backup** and select the project backup file on your drive.
4. Type in the app name.
5. Click **Create**:

<Image title="2023-03-23_11-53-20.png" alt={1027} align="center" border={true} src="https://files.readme.io/7b4a252-2023-03-23_11-53-20.png">
  Create new app from backup
</Image>

> 🚧 Defining DB credentials
>
> Note, that if you decide to create from backup but would like to use your database, you will need to modify the default **todoDB** service in your app.
>
> To do it, in the [**Project** view](https://docs.appery.io/docs/apperyio-visual-builder#project-view), unfold the **Services > todoDB > todoDB\_settings** folder and replace the default **database\_id** value with your database ID (can be found in the browser search field or in **YOUR DATABASE >[Settings](https://docs.appery.io/docs/database-settings) > API keys**:

<Image title="Untitled.png" alt={3141} align="center" border={true} src="https://files.readme.io/23bb9d0-Untitled.png">
  Database ID
</Image>

But if you are interested in the detailed tutorial, please follow the steps below.

# **Database** Setup

First, we will need to setup the database.

## Creating New **Database**

1. Create a new database from the **[Databases](https://appery.io/database/)** tab, click **[Create new database](https://docs.appery.io/docs/database-quickstart-buildng-an-app-with-database#creating-new-database)**:

<Image title="Screen Shot 2020-04-20 at 1.27.48 PM.png" alt={1267} align="center" border={true} src="https://files.readme.io/ad91377-Screen_Shot_2020-04-20_at_1.27.48_PM.png">
  Create new database
</Image>

2. Name your database **todoDB** and click **Create**:

<Image title="Screen Shot 2020-04-20 at 1.29.32 PM.png" alt={506} align="center" border={true} src="https://files.readme.io/670c2c8-Screen_Shot_2020-04-20_at_1.29.32_PM.png">
  Create todoDB database
</Image>

## Adding New *Collection* to **Database**

After creating a new database you will see a list of its [predefined collections](https://docs.appery.io/docs/database-collections#predefined-collections). Also, you can create custom collections.

1. Click **[Create new collection](https://docs.appery.io/docs/database-quickstart-buildng-an-app-with-database#creating-new-collection)** to create a new [custom](https://docs.appery.io/docs/database-collections#custom-collections) database collection.
2. Enter ***tasks*** as the collection name and click **Add**:

<Image title="Screen Shot 2020-04-20 at 1.46.28 PM.png" alt={1243} align="center" border={true} src="https://files.readme.io/287c8a3-Screen_Shot_2020-04-20_at_1.46.28_PM.png">
  Create *tasks* collection
</Image>

### Adding New Column to *Collection*

Then, we need to fill the created collection with data.

1. First, select the **tasks** collection from the list. Click **+ Col**. Name the column **taskName**, select the ***String*** type and click **Create column**:

<Image title="Screen Shot 2020-04-15 at 9.30.59 AM.png" alt={297} align="center" border={true} src="https://files.readme.io/ff8229c-Screen_Shot_2020-04-15_at_9.30.59_AM.png">
  Create taskName collection
</Image>

2. New **taskName** column appears in the table:

<Image title="Screen Shot 2020-04-15 at 9.51.13 AM.png" alt={866} align="center" border={true} src="https://files.readme.io/a29efce-Screen_Shot_2020-04-15_at_9.51.13_AM.png">
  Create taskName column
</Image>

3. Now, using **+Row**, enter a few records. For example, add the following tasks:

* ***Do the task***
* ***Create a new DB***
* ***Create my first app in Appery***
* ***Learn to code***, etc.

That's what it should look like:

<Image align="center" className="border" border={true} src="https://files.readme.io/f489213-2023-03-23_12-08-28.png" />

Now the database for our app is ready. Let's move on to creating the app itself.

# Mobile App

## Creating New App

1. From the **[Apps](https://appery.io/app/projects)** tab, click **[Create new app](https://docs.appery.io/docs/1-creating-an-app-ui-palette#creating-new-app)**:

<Image title="Screen Shot 2020-04-15 at 9.56.32 AM.png" alt={1226} align="center" border={true} src="https://files.readme.io/b6f3e2d-Screen_Shot_2020-04-15_at_9.56.32_AM.png">
  Create a new app
</Image>

2. Select **Ionic >[ Ionic Blank](https://docs.appery.io/docs/ionic-5-app-templates#ionic-5-blank)** as the application type, enter ***Ionic ToDoList App*** for the app name, and click **Create**:

<Image title="2023-03-23_11-56-42.png" alt={1027} align="center" border={true} src="https://files.readme.io/14c4a6b-2023-03-23_11-56-42.png">
  Ionic App create dialog
</Image>

The first thing you can see is our **[App Builder](https://docs.appery.io/docs/apperyio-visual-builder)** **[Educational Video Guide](https://docs.appery.io/docs/general-getting-started-ionic-5#apperyio-educational-video-guide)** page with the **[Project View](https://docs.appery.io/docs/apperyio-visual-builder#project-view)** section on the left where all the predefined project data can be found:

<Image align="center" className="border" border={true} src="https://files.readme.io/1297150-2023-03-23_11-59-52.png" />

## Building UI

1. Every new app comes with a default **[Screen1](https://docs.appery.io/docs/2-creating-an-app-ui-pages-and-tabs#pages-screens)** page. Let's open it: **Pages > Screen1** and under the page **[PROPERTIES](https://docs.appery.io/docs/1-creating-an-app-ui-palette#properties-overview)** panel, set the **Page Footer** property to ***False*** as we won't need the bottom app toolbar:

<Image align="center" className="border" border={true} src="https://files.readme.io/e0110ac-ToDo_List_App___Apps_-_Google_Chrome_2023-03-23_12.png" />

2. Click the **[Toolbar title](https://docs.appery.io/docs/ionic-5-ui-components-properties#toolbar-title)** in the app screen and under the **Common** tab, change it to **My Todo App** by changing the **Text** property on the right menu (or enter the text string right in the mobile frame):

<Image title="2023-03-23_12-20-24.png" alt={1920} align="center" border={true} src="https://files.readme.io/885804e-2023-03-23_12-20-24.png">
  **Toolbar** properties
</Image>

3. In our app, we would need a list for showing the records that we have in the database. So, from the components **[PALETTE](https://docs.appery.io/docs/1-creating-an-app-ui-palette#ui-components-palette-overview)**, drag the **[List](https://docs.appery.io/docs/ionic-5-ui-components-properties#list)** component and drop it to the screen:

<Image title="2023-03-23_12-22-18.png" alt={1666} align="center" border={true} src="https://files.readme.io/290740b-2023-03-23_12-22-18.png">
  **List** component
</Image>

4. Click the second **[List item](https://docs.appery.io/docs/ionic-5-ui-components-properties#list-item)** - **ListItem2** and click on the red cross to delete it:

<Image align="center" className="border" border={true} src="https://files.readme.io/cc144f5-2023-03-23_12-23-08.png" />

We won't need the second list item since we are going to use a dynamic service for displaying lists in our app.

> 📘
>
> You can use the **[OUTLINE](https://docs.appery.io/docs/1-creating-an-app-ui-palette#outline-view)** view menu and the **Breadcrumbs** for navigating between the app UI components.\
> Also, from here, deleting and hiding/showing UI components is possible:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/63e1733-2023-03-23_12-24-06.png" />

5. Select the **ListItem1** component. In the **[PROPERTIES](https://docs.appery.io/docs/1-creating-an-app-ui-palette#properties-overview)** panel, open the component's **Styles** tab and set its **Class** property to ***todoListItem***:

<Image align="center" className="border" border={true} src="https://files.readme.io/fb2d4d0-2023-03-23_12-25-16.png" />

6. Then, switch to the **Common** tab and add the **\*ngFor** attribute with the ***let task of tasksList*** value:

<Image title="2023-03-23_12-26-31.png" alt={1667} align="center" border={true} src="https://files.readme.io/5b62e19-2023-03-23_12-26-31.png">
  **List** properties
</Image>

7. Let's now add some flavor to our list element and customize its color. Open the **[SCSS](https://docs.appery.io/docs/apperyio-visual-builder#scss-panel)** panel and add the following code:

```scss
.todoListItem:nth-child(odd) {
    --background: #f2f2f2;
}
```

8. Click **SAVE** and see if the SCSS file was applied correctly and the styles (the item color changes to grey) were applied on the app **[DESIGN](https://docs.appery.io/docs/apperyio-visual-builder#design-panel)** panel:

<Image align="center" className="border" border={true} src="https://files.readme.io/9b51e81-2023-03-23_12-27-43.png" />

### Adding Buttons

Okay, so far, the app looks good! Now let's add some elements to manage our tasks list.

1. Under the page **[DESIGN](https://docs.appery.io/docs/apperyio-visual-builder#design-panel)** panel, drag the **[Button](https://docs.appery.io/docs/ionic-5-ui-components-properties#button)** and drop it into the **ListItem1** element, placing it to the right:

<Image align="center" className="border" border={true} src="https://files.readme.io/3d1fa89-2023-03-23_12-28-50.png" />

2. Now, select the created **Button**, clear the default **Text** value and set the following properties:

* **Icon > Style** = ***remove***
* **Icon > Slot** = ***Icon Only***
* **(click)** = ***deleteTask(task.\_id)***:

<Image align="center" className="border" border={true} src="https://files.readme.io/8013ae3-2023-03-23_12-30-07.png" />

> 📘
>
> For the **Common > Icon > Style** property, click the **Default icon** button to select (or filter for) the icon you need:

<Image align="center" className="border" border={true} src="https://files.readme.io/c1da8f1-2023-03-23_12-32-09.png" />

After that, switch to the component's **Styles** tab and set the **Button Color** property to ***Danger***:

<Image align="center" className="border" border={true} src="https://files.readme.io/15c984c-2023-03-23_12-33-35.png" />

3. Inside the list item, select **ItemLabel1** and set its ***Text*** property to ***\{\{task.taskName}}***:

<Image align="center" className="border" border={true} src="https://files.readme.io/aef9560-2023-03-23_12-34-52.png" />

4. Finally, add another **[Button](https://docs.appery.io/docs/ionic-5-ui-components-properties#button)** component to the **[ToolbarButtons](https://docs.appery.io/docs/ionic-5-ui-components-properties#toolbar-buttons)** area, go to its **Common** tab to clear the default **Text** value and set its properties to:

* **Icon > Style** = ***`add`icon***
* **Icon > Color** = ***primary***
* **Icon > Slot** = ***Icon Only***:

<Image title="2023-03-23_12-36-39.png" alt={1380} align="center" border={true} src="https://files.readme.io/3db88bb-2023-03-23_12-36-39.png">
  Button2 layout overview
</Image>

### Creating *Task* Page

We will need a separate page for adding a new task to the list, so let's create it.

1. Click **CREATE NEW > Page** and name the created page ***AddTaskPage***:

<Image title="2023-03-23_12-38-02.png" alt={1249} align="center" border={true} src="https://files.readme.io/0b7d684-2023-03-23_12-38-02.png">
  Create new page
</Image>

> 🚧
>
> Note that the **Create navigation route for this page** check box is selected. You can find and edit all routes in the **Project menu >[Routing](https://docs.appery.io/docs/4-routing-and-navigation#using-routing)** asset.

2. On the new page, disable the **Page** footer by setting its **Footer** property to ***False***. Also, change the **[Toolbar Title](https://docs.appery.io/docs/ionic-5-ui-components-properties#toolbar-title)** **Text** to ***Add new task***:

<Image align="center" className="border" border={true} src="https://files.readme.io/98f0675-2023-03-23_12-40-38.png" />

3. Drag a **[Button](https://docs.appery.io/docs/ionic-5-ui-components-properties#button)** element and drop it into the **[Toolbar Buttons](https://docs.appery.io/docs/ionic-5-ui-components-properties#toolbar-buttons)** area. We will use this button for back navigation. To do this, under the **Common** tab, change the **Comp. Type** value to ***Ionic Back Button*** in the **[PROPERTIES](https://docs.appery.io/docs/1-creating-an-app-ui-palette#properties-overview)** panel.
4. Next, unfold the **[Back Button](https://docs.appery.io/docs/ionic-5-ui-components-properties#ionic-back-button)** group and set the **Text** property to ***Back***:

<Image title="2023-03-23_12-43-04.png" alt={1692} align="center" border={true} src="https://files.readme.io/bb338a1-2023-03-23_12-43-04.png">
  Back button properties
</Image>

To enter the names of new tasks, we will need an **[Input](https://docs.appery.io/docs/ionic-5-ui-components-properties#input)** component.

5. Let's drag it to the page from **[PALETTE](https://docs.appery.io/docs/1-creating-an-app-ui-palette#ui-components-palette-overview)** and set the following **Common** tab properties:

* **Placeholder** = ***Enter task***
* **Label >Text** = ***empty***
* **\[(ngModel)]** = ***newTaskName***

<Image align="center" className="border" border={true} src="https://files.readme.io/565f54d-2023-03-23_12-44-49.png" />

6. Then, under the input, add another **[Button](https://docs.appery.io/docs/ionic-5-ui-components-properties#button)** that will be used to save the entered tasks. Set its **Common > Text** property to ***Add Task***:

<Image align="center" className="border" border={true} src="https://files.readme.io/a2f05af-2023-03-23_12-46-40.png" />

That's it, the app UI is ready and we can move on to implementing the app logic.

## Application Logic

### Getting Tasks List

The first thing we need to do is to get the full list of tasks from the database.

1. Go to **Screen1** **[CODE](https://docs.appery.io/docs/apperyio-visual-builder#code-panel)** panel. In the **Variables** section, enter `tasksList` as a variable name, click **Add** and change the type of the created variable to **Any**:

<Image align="center" className="border" border={true} src="https://files.readme.io/f0d65db-2023-03-23_12-47-54.png" />

2. Click **Create New > Database Service** and select the ***todoDB*** database from the drop-down. Expand the list of the ***tasks*** collection services and select the ***Create***, ***List*** and ***Delete*** services. Click **Import selected services**:

<Image title="Untitled1.png" alt={1249} align="center" width="80%" border={true} src="https://files.readme.io/085fa6c-Untitled1.png">
  Import database services
</Image>

3. After importing the database services, they should appear in the **Project** tree in the **Services > todoDB** folder:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/57cb247-2023-03-23_12-52-20.png" />

4. Now we need to use these services in our app. Under the **Project > Pages** folder, navigate to the **Screen1** **[DATA](https://docs.appery.io/docs/apperyio-visual-builder#data-panel)** panel. Here, add the ***todoDB\_tasks\_list\_service*** as a datasource and change the service's generated local name to ***getTasksList***:

<Image align="center" className="border" border={true} src="https://files.readme.io/6b75872-2023-03-23_12-53-29.png" />

5. Then, we need to save the data that is returned from the service to the variable. Click the **Mapping** button next to the service's **Success** event:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/99f0f4c-Screenshot_33.png" />

6. Map the service response to the `tasksList` variable. Don't forget to click **Save & Replace** after that:

<Image align="center" className="border" border={true} src="https://files.readme.io/33c1a13-2023-03-23_13-14-07.png" />

7. As we need to load the list of tasks on the page load, let's add the required event. Go back to the **[DESIGN](https://docs.appery.io/docs/apperyio-visual-builder#design-panel)** panel. In the **[EVENTS](https://docs.appery.io/docs/apperyio-visual-builder#events-tab)** tab for the **[Page](https://docs.appery.io/docs/2-creating-an-app-ui-pages-and-tabs#pages-screens)** component, add the ***Before page showing*** event. Select ***[Invoke service](https://docs.appery.io/docs/5-event-handling#invoke-service)*** as the **Action** and ***getTasksList*** service as the **Datasource**. Click **Save**:

<Image align="center" className="border" border={true} src="https://files.readme.io/f1559de-2023-03-23_12-56-56.png" />

The service will be invoked each time you enter the **Screen1** page, and the list of tasks will be loaded from our database.

8. Also, let's set up some routing. We need to navigate to the **AddTaskPage** when the user clicks the **`+`** button in the toolbar. To do that, select the **Button2** component inside the **Toolbar Buttons** area and create a new **Click** event in the **[EVENTS](https://docs.appery.io/docs/apperyio-visual-builder#events-tab)** tab. Select ***[Navigate to page](https://docs.appery.io/docs/5-event-handling#navigate-to-page)*** as the **Action** and ***AddTaskPage*** as the **Route name**. Click **Save**:

<Image align="center" className="border" border={true} src="https://files.readme.io/b7f9ac3-2023-03-23_12-59-04.png" />

At this point, we can test our app in the browser. Click the **TEST** button in the **[App Builder](https://appery.io/appbuilder)** **[Toolbar](https://docs.appery.io/docs/apperyio-visual-builder#toolbar)** to launch the app. Check that tasks will appear on the app screen, and you can navigate to the **AddTasksPage** by clicking on the **+** button in the toolbar. Also, make sure that the back navigation works too:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/aa46dc8-Animation1.gif" />

### Deleting Tasks

Let's proceed with the app. The next thing we need to do is to implement the functionality to remove tasks from the list.

1. Go to the **Screen1** **[CODE](https://docs.appery.io/docs/apperyio-visual-builder#code-panel)** panel. Scroll to the **Functions** section and create a **Method** named `deleteTask` with `taskId` as its argument.
2. From the list of services on the left, drag the ***todoDB\_task\_delete\_service*** and drop it into the function code window. This will automatically add the code of the service invocation:

<Image align="center" className="border" border={true} src="https://files.readme.io/f32380f-Animation2.gif" />

3. Add some edits to the code. Insert the ***[Execute DataService](https://docs.appery.io/docs/ionic-4-snippets#execute-dataservice)*** snippet instead of `console.log(res);` (line *13*). Replace `"service_name"` with `"getTasksList"` which is the name of the previously imported service. This will reload the list of tasks from the database right after one of them is removed:

<Image align="center" className="border" border={true} src="https://files.readme.io/6f8c2a7-Screen_Shot_2020-04-15_at_6.42.29_PM.png" />

4. Then, add `"_id": taskId` to the **params** block. Save the changes. As a result, the function code will look like this:

<Image title="2023-03-23_13-09-28.png" alt={1831} align="center" width="80%" border={true} src="https://files.readme.io/29c596a-2023-03-23_13-09-28.png">
  deleteTask code
</Image>

### Adding Tasks

Now we can remove tasks from the list, but we also need the ability to create new ones.

1. Now, open the **[CODE](https://docs.appery.io/docs/apperyio-visual-builder#code-panel)** panel of the **AddTaskPage**, and add a new variable to store the name of a new task. Enter `newTaskName` as its name and select the **String** type:

<Image align="center" className="border" border={true} src="https://files.readme.io/f9c18d4-2023-03-23_13-11-01.png" />

2. Navigate to the page **[DATA](https://docs.appery.io/docs/apperyio-visual-builder#data-panel)** paneland add the ***todoDB\_tasks\_create\_service*** as the new **Datasource**. Change its local name to ***createTask***:

<Image align="center" className="border" border={true} src="https://files.readme.io/a0bea2e-2023-03-23_13-12-04.png" />

3. Then, click the **Mapping** button next to the **Before send** event and map the ***newTaskName*** variable to the ***taskName*** service request parameter. After editing, click **Save & Replace**:

<Image align="center" className="border" border={true} src="https://files.readme.io/0beb905-2023-03-23_13-13-16.png" />

4. Also, we need to clear the input field if the task was successfully added. Click **Add** next to the **Success** event and select **[Run TypeScript](https://docs.appery.io/docs/5-event-handling#run-typescript)** in the list. In the code editor, type in `this.newTaskName = "";` and click **Save**:

<Image align="center" className="border" border={true} src="https://files.readme.io/781a8cc-Screen_Shot_2020-04-15_at_7.20.18_PM.png" />

5. And the last thing we need to do when the task is successfully added is to return to the main page. Сlick the **Add** button next to the **Success** event again. Select ***[Navigate to page](https://docs.appery.io/docs/5-event-handling#navigate-to-page)*** as the **Action** and ***Screen1*** as the **Route name**. Don't forget to save the changes:

<Image align="center" className="border" border={true} src="https://files.readme.io/d22f79b-Screen_Shot_2020-04-15_at_7.33.19_PM.png" />

6. And finally, we need to invoke the ***createTask*** service when the user clicks the **Add task** button. So, go to the **[DESIGN](https://docs.appery.io/docs/apperyio-visual-builder#design-panel)** panel, unfold the **[EVENTS](https://docs.appery.io/docs/apperyio-visual-builder#events-tab)** tab from the bottom and for the ***Button2*** component create a new **Click** event. Select ***[Invoke service](https://docs.appery.io/docs/5-event-handling#invoke-service)*** as the **Action** and ***createTask*** as the **Datasource**:

<Image align="center" className="border" border={true} src="https://files.readme.io/c7137e0-2023-03-23_13-16-59.png" />

### Editing Tasks

Let's also add the ability to edit the existing items on the todo list.

1. In the **[App Builder](https://appery.io/appbuilder)**, click **CREATE NEW > Database Service**. Here, select the ***todoDB*** database from the drop-down. Expand the list of the ***tasks*** collection services and select the ***Update*** service. Click **Import selected services**:

<Image align="center" className="border" border={true} src="https://files.readme.io/c633d15-Screenshot_50.png" />

2. Go to **Screen1** page's **[DESIGN](https://docs.appery.io/docs/apperyio-visual-builder#design-panel)** panel. Here, drop one more **[Button](https://docs.appery.io/docs/ionic-5-ui-components-properties#button)** into the **ListItem1** element, placing it next to the existing button.

3. Now, select the created button, and under the **Common** tab, set the following properties:

* **Icon > Style** = ***`create`icon***
* **Icon > Slot** = ***Icon Only***
* **Text** = ***empty***
* **(click)** = ***editTask(task.\_id, task.taskName)***:

<Image align="center" className="border" border={true} src="https://files.readme.io/a096d8f-2023-03-23_13-20-30.png" />

4. Then, switch to the **[CODE](https://docs.appery.io/docs/apperyio-visual-builder#code-panel)** panel and in the **Functions** section create a new **Async method** named ***editTask*** with ***taskId*** and ***taskName*** as its arguments and the following code:

```typescript
const alert = await this.Apperyio.getController("AlertController").create({
    header: 'Edit task',
    inputs: [{
        name: 'task',
        type: 'text',
        value: taskName
    }],
    buttons: [{
        text: 'Cancel',
        role: 'cancel',
        cssClass: 'secondary',
    }, {
        text: 'Edit',
        handler: (res) => {
            if (res.task.length) {
                this.Apperyio.getService("todoDB_tasks_update_service").then(
                    service => {
                        if (!service) {
                            console.log("Error. Service was not found.");
                            return;
                        }
                        service.execute({
                            data: {
                                taskName: res.task
                            },
                            params: {
                                _id: taskId
                            },
                        }).subscribe(
                            (res: any) => {
                                this.Apperyio.execDataService(this, "getTasksList");
                            },
                            (err: any) => {
                                console.log(err)
                            }
                        )
                    }
                )
            }
        }
    }]
});

await alert.present();
```

<Image align="center" className="border" border={true} src="https://files.readme.io/983d7ec-2023-03-23_13-23-41.png" />

Save all the app changes, and we are ready to test the app!

## Testing App

Click the **TEST** button in the **[App Builder](https://appery.io/appbuilder)** **[Toolbar](https://docs.appery.io/docs/apperyio-visual-builder#toolbar)** to launch the app in the browser.\
Try removing tasks from the list, creating new and editing existing ones. Everything should work as follows:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/d780f4b-Animation3.gif" />

When testing, you can open your database (here, it's **todoDB**) to check its **tasks** [custom collection](https://docs.appery.io/docs/database-collections#custom-collections) and make sure that new file entries are already there (you may need to click the **Refresh** button to update the list):

<Image align="center" className="border" border={true} src="https://files.readme.io/6f0f4df-2023-03-23_13-27-40.png" />

## Testing on Device

Now, when your app version is ready, you might also like to [test](https://docs.appery.io/docs/9-testing-your-app) 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](https://apps.apple.com/app/id737478069) and [Android](https://play.google.com/store/apps/details?id=io.appery.tester\&hl=en).\
> You can check out [this](https://docs.appery.io/docs/apperyio-tester-app) page to learn more about using the **Appery.io Tester** app.

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/4848a84-2023-03-23_13-28-59.png" />

> 📘 Want to know more?
>
> You might also like to check our [advanced ToDo List tutorial](https://docs.appery.io/docs/creating-secured-api-express-project-with-external-postgresql-database) that uses an external PostgreSQL database with creating a secured **API Express** project.