feat: add illa doc
No files matched your search
@@ -0,0 +1,102 @@
|
||||
import Layout from '~/layouts/DefaultGuideLayout'
|
||||
|
||||
export const meta = {
|
||||
id: 'illa',
|
||||
title: 'ILLA',
|
||||
description:
|
||||
'Get started with Supabase and ILLA, a low-code platform for developers that enables the rapid development and deployment of internal tools.',
|
||||
}
|
||||
|
||||
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/](https://www.illacloud.com/). Let's begin!
|
||||
|
||||
### Step 1: Set up your Back end on Supabase
|
||||
|
||||
On the [Supabase dashboard](https://app.supabase.com/projects), click `New project` and set the name to adminPanel.
|
||||
|
||||

|
||||
|
||||
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.
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
Fill out the info in the table. The database is now set up.
|
||||
|
||||
### Step 2: Build UI on ILLA Builder
|
||||
|
||||
On [ILLA Builder](https://fast-try.illacloud.com/), click Create New to create a new application.
|
||||
|
||||

|
||||
|
||||
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.
|
||||
|
||||

|
||||
|
||||
### Step 3: Connect to Supabase and config CRUD
|
||||
|
||||
Note down the database connection information under [Project Settings](https://app.supabase.com/project/hdcfnsxpwwgboqomdrhp/settings/database) in Supabase.
|
||||
|
||||

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

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

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

|
||||
|
||||
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:
|
||||
|
||||

|
||||
|
||||
## Resources
|
||||
|
||||
- [Supabase official website](https://supabase.com/)
|
||||
- [Supabase GitHub](https://github.com/supabase/supabase)
|
||||
- [Supabase documentation](https://supabase.com/docs)
|
||||
|
After Width: | Height: | Size: 132 KiB |
|
After Width: | Height: | Size: 203 KiB |
|
After Width: | Height: | Size: 88 KiB |
|
After Width: | Height: | Size: 86 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 102 KiB |
|
After Width: | Height: | Size: 101 KiB |
|
After Width: | Height: | Size: 48 KiB |
|
After Width: | Height: | Size: 89 KiB |