Connect Flutterflow Application with Local Supabase
Knowledge

Connect Flutterflow Application with Local Supabase

Explore how to Connect Flutterflow Application with Local Supabase

Pankaj Sharma
Flutterflow development company
February 25, 2025
Table of content

Overview

Using FlutterFlow with a local Supabase setup offers several benefits, especially for developers who want a no-code/low-code approach combined with a powerful backend solution.

Prerequisites

  • Docker
  • Supabase CLI
  • FlutterFlow

Docker

Docker is a platform that allows you to develop, ship, and run applications inside lightweight, portable containers. Containers package applications with their dependencies, making them easy to run on different environments without compatibility issues.

1. Install Docker on Windows

Step 1: Download Docker Desktop

  • Go to the official Docker website and download Docker Desktop for Windows.
  • Ensure WSL 2 (Windows Subsystem for Linux) is enabled for better performance.

Step 2: Install Docker

  • Run the installer and follow the setup instructions.
  • Restart your computer if required.

Step 3: Verify Installation

  • Open Command Prompt (CMD) or PowerShell and run:
  • docker --version

  • If Docker is installed correctly, it will show the installed version.

Supabase CLI

Supabase CLI (Command-Line Interface) is a tool that allows you to manage your Supabase projects, databases, authentication, and storage from the command line. It is useful for:

  1. Running Supabase locally
  2. Managing databases with migrations
  3. Deploying to the cloud
  4. Seeding test data

Install Supabase CLI on Windows

  1. Install Supabase CLI using Node.js. To download Node.js, go to the official website here.

npm install supabase --save-dev

  1. Verify installation:

supabase --version

  1. Inside the folder where you want to create your project, run:

supabase init

This will create a new supabase folder. It is safe to commit this folder to your version control system.

5.Now, to start the Supabase stack, run:

supabase start

If you encounter the error "Try rerunning the command with --debug to troubleshoot the error", try running:

npx supabase start --ignore-health-check

If the command runs successfully, you will see an output similar to this.

Using the Studio URL, you can open it in the browser to see the local Supabase and its functionalities. here you can also see API URL and anon key to connect your front end with local supabase.

Flutterflow

FlutterFlow is a low-code development platform built on top of Flutter, Google's open-source UI toolkit for building natively compiled applications for mobile, web, and desktop from a single codebase.

To set up your Flutterflow project, please follow the steps below:

1. Create a Flutterflow project

  • Go to the Flutterflow console.
  • Click on Create a project and follow the instructions to set up a new project.

2. Enable Supabase in Flutterflow

  • Enable Supabase in flutterflow and fill API URL and Anon Key from local supabase.

To Link an Existing Supabase Project to the Local CLI

  1. Login to supabase

npx supabase login

After that, it will give you a link to log in to Supabase. Open that link in your browser, and it will provide a verification code like the one in the image below. Copy that code and paste it into PowerShell.

  1. Link the Supabase CLI to an existing Supabase project:

npx supabase link

After running this command, a list of your projects will be displayed. Select the project you want to use.

After selecting the project, enter your database password. Note that the password will not be visible while typing.

  1. Access the existing project tables and functionalities:

npx supabase db diff -f initial_structure --linked

  1. Access the existing project tables and stored data:

npx supabase db dump --data-only -f supabase/seed.sql --linked

  1. Reset and recreate the database in the local Supabase CLI:

npx supabase db reset

Conclusion

By following these steps, you can connect FlutterFlow with a local Supabase instance for testing and development. This setup allows you to work offline and develop apps efficiently before deploying to a production Supabase instance.

Connect Flutterflow Application with Local Supabase

Ex- Technical Lead at Paytm Money | Senior Software Developer | NIT Surathkal

Flutterflow project image

Need expert help in Flutterflow and Supabase?

Contact Us
Flutterflow development company

View more blogs

Ready to develop your own product? Get in touch today!

Get in Touch  
Flutterflow app development
Whatsapp icon