Hi
Supabase is an open source Firebase alternative. It provides all the backend services you need to build a product. Supabase uses Postgres database with real-time capabilities. Basically, supabase provides an interface to manage postgres database that you can use to create table and insert, edit and delete data in the table.
We can use REST API or client libraries from supabase to access the data in the postgres database. Supabase is not just about accessing the database. it also provides some solutions out of the box such as Authentication, File Storage and Real-time capabilities.
For this example we will use the javascript sdk. I am using this for the SithasoDaisy framework.
First things first
1. Sign Up
2. Get the JavaScript SDK and include in your project.
You will use the CDN version in this section
Add this to your BANano project, in the Main code module using
3. Create a project.
4. Create a table with columns.
5. Get your keys...
We have a table called books with a few fields. You can create any schema you want.
We initialize the class:
Related Content
Supabase Crash Course
Supabase is an open source Firebase alternative. It provides all the backend services you need to build a product. Supabase uses Postgres database with real-time capabilities. Basically, supabase provides an interface to manage postgres database that you can use to create table and insert, edit and delete data in the table.
We can use REST API or client libraries from supabase to access the data in the postgres database. Supabase is not just about accessing the database. it also provides some solutions out of the box such as Authentication, File Storage and Real-time capabilities.
For this example we will use the javascript sdk. I am using this for the SithasoDaisy framework.
First things first
1. Sign Up
Supabase | The Open Source Firebase Alternative
Build production-grade applications with a Postgres database, Authentication, instant APIs, Realtime, Functions, Storage and Vector embeddings. Start for free.
supabase.com
2. Get the JavaScript SDK and include in your project.
You will use the CDN version in this section
Add this to your BANano project, in the Main code module using
B4X:
BANano.Header.AddJavascriptFile("SUPABASE SDK URL LINK")/
3. Create a project.
4. Create a table with columns.
5. Get your keys...
We have a table called books with a few fields. You can create any schema you want.
We initialize the class:
B4X:
'SELECT_ALL
Dim supabase As SDUISupaBase
supabase.Initialize(Me, "supabase", my_url, my_key)
supabase.TableName = "books"
Related Content
Supabase Crash Course
Attachments
Last edited: