Flutter Getx State Management – Supabase Simple CRUD Demo

You are currently viewing Flutter Getx State Management – Supabase Simple CRUD Demo

What is Supabase

Flutter Getx State Management – Supabase is an open source and it’s an alternative to Firebase. Supabase is based on Postgres database, it has many advanced features, you can use their Database, Authentication, Instant APIs, Edge Functions, Realtime Subscriptions, Storage, and Vector embeddings. Supabase with Flutter has really good advantages, it has provided a very well document.

See also  TikTok Clone using Flutter GetX State Management

Tech Stack

Features

  • CRUD Notes (title, description)
  • Foreign key from users table in notes table
  • Authentication & Authorization
  • Fully Getx cli pattern implementation
  • Automatic logout based on time after login

Environment Variables

To run this project, you will need to add the following environment variables to your .env file or change .env.example to .env and don’t forget to set the environment key

See also  E-commerce App Example With Flutter GetX

SUPABASE_URL= “Your Supabase URL”

SUPABASE_ANONKEY= “Your Supabase anonKey”

Run Locally

Clone the project
git clone https://github.com/fridolinf/supabase_example.git

Go to the project directory
cd supabase_example


Install getx cli globally
pub global activate get_cli

see full implementation: https://pub.dev/packages/get_cli

Install dependencies

  • using flutter cli and vscode

flutter pub get

DB Schema

Table






Notes Table

See also  Car Control Dashboard App using GetX in Flutter

Credit

This project was developed by fridolinf
Download this project from the below link.
https://github.com/fridolinf/supabase_example/archive/refs/heads/master.zip
You can visit original source page from the below link.
https://github.com/fridolinf/supabase_example

Spread the love

Leave a Reply