Local Supabase Setup

Exporting Your Supabase Project from eMOBIQ-AI to Your Local Environment


Step 1 — Set Up Supabase Locally

Running Supabase locally gives you the same core services that eMOBIQ-AI used remotely:

Service

Description

🗄️ Postgres

Database

👥 Auth

User authentication

📦 Storage

File management

🧰 Studio

Supabase’s web dashboard


1. Install Docker and the Supabase CLI

Follow the official Supabase installation guide:

👉 Supabase Local Development Setup


2. Initialize and Start Your Local Stack

From your terminal:

supabase init
supabase start

This launches all Supabase services in Docker containers.


3. Get Your Local Environment Info

You’ll get something like:

You’ll use the API URL and Publishable key when reconnecting your project files.


Step 2 — Export Data from Your Supabase Cloud Project

This step copies your eMOBIQ-AI-connected Supabase database to your local instance.

1. Use pg_dump to Export Your Cloud Database

Run:

Replace [YOUR_SUPABASE_PROJECT_REF] with your project ID, e.g. uiqtrynalesuctjsemzf.

You can find this in the Supabase Dashboard URL:

When prompted for a password, use the Database password from Project Settings → Database → Connection Info in Supabase Cloud.


Step 3 — Import Data into Your Local Supabase

Now import that dump into your local instance:

Default local password:

When done, open Supabase Studio at http://127.0.0.1:54323 and confirm your tables and data are visible.


Step 4 — Update Your HTML/JS Project to Point to Local Supabase

Your eMOBIQ-AI projects connect to Supabase Cloud using createClient().

Now, replace those cloud credentials with your local instance values.

ESM (common in modern setups)

UMD (non-module)


Step 5 — Run Your App Locally

Avoid running HTML files directly with file:// — use a lightweight dev server instead:

Then open http://localhost:3000.


Step 6 — Sanity Checks

Feature

How to Test

🗃️ Database

Check tables in Studio → http://127.0.0.1:54323

👥 Auth

Create a test user; view the email in Mailpit

📦 Storage

Upload a file via Studio → Storage

⚡ Frontend

Your app fetches data from http://127.0.0.1:54321


Optional — Switching Between Cloud & Local

You can toggle environments with a small script helper:


🎉 You’re Done!

Your Supabase project — originally linked through eMOBIQ-AI — is now fully local.

You can edit your schema, test API calls, and build offline without relying on Supabase Cloud or eMOBIQ-AI’s live environment.


Troubleshooting

Issue

Possible Fix

supabase: command not found

Reinstall the CLI with npm install -g supabase or brew install supabase/tap/supabase

pg_dump: could not translate host name

Check your network or ensure you included port 6543

Can’t connect from browser

Serve files via npx serve ., not file://

Wrong port

Database: 54322, API: 54321, Studio: 54323

Missing tables

Ensure you imported your dump into the correct port (54322)


Enterprise Deployment Support

If you’d like to deploy your Supabase environment to a virtual machine (VM) or your own production server, we can help you set that up securely.

For enterprise deployment assistance, please contact our team here.

Our enterprise support can guide you through:

  • Deploying Supabase on your own infrastructure (AWS, Azure, GCP, etc.)

  • Setting up backups, SSL, and domain routing

  • Scaling from local to production-grade environments


References

Last updated