Home

ILLA

This tutorial outlines the process of creating an Admin Panel using ILLA Builder and Supabase in a few simple steps. ILLA is a low-code platform for developers that enables the rapid development and deployment of internal tools. It allows for creating pages by dragging and dropping UI components, connecting to any database or API, and writing JavaScript. To learn more about ILLA and give it a try, visit their website at https://www.illacloud.com/. Let's begin!

Step 1: Set up your Back end on Supabase#

On the Supabase dashboard, click New project and set the name to adminPanel.

Create Supabase Project for ILLA Admin Panel

Create a new table by clicking on the Create a new table .

Supabase offers a variety of options for populating tables with data, including writing queries, creating schemas through a user interface, and uploading CSV files.

Create Supabase Table for ILLA Admin Panel

Config Supabase Table for ILLA Admin Panel

Fill out the info in the table. The database is now set up.

Step 2: Build UI on ILLA Builder#

On ILLA Builder, click Create New to create a new application.

Create new project on ILLA Builder

Drag components from the Insert panel to the canvas.

Select the components on the canvas and configure the property on the Inspect panel.

As seen in the below screenshot, we have built a simple admin panel.

Build UI with ILLA Builder

Step 3: Connect to Supabase and config CRUD#

Note down the database connection information under Project Settings in Supabase.

Note information in supabase

In the Action List, click + New and select Supabase DB.

Connect ILLA to Supabase

Fill out the form to connect to your Supabase instance. Test connection and save resource.

Config Supabase in ILLA

Click Create Action to create an action with the Supabase resource and config your CRUD.

Select Supabase resource in ILLA

Use {{ to get the front-end input data. The following is an example of the User Management page in the Admin Panel.

Search for a user by the name inputted in input1

SELECT *
FROM user
WHERE name = "{{input1.value}}"
;

Update user data. Update user information when id matches

UPDATE user
SET name = "{{input3.value}}"
, email = "{{input4.value}}"
WHERE id="{{input2.value}}"
;

Insert user data

INSERT INTO user VALUES("{{input5.value}}","{{input6.value}}","{{input7.value}}");

Delete a user by id

DELETE FROM user WHERE id = "{{input2.value}}";

Step 4: Show data on components#

Configure the properties of components with {{ . For example:

Show Supabase data on ILLA components

Resources#

Need some help?

Not to worry, our specialist engineers are here to help. Submit a support ticket through the Dashboard.