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 Cloud#

On ILLA Cloud, 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


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

Update user data. Update user information when id matches


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

Insert user data


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

Delete a user by id


_10
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#