Skip to content

Add reusable local Supabase dev stack#31

Open
bastislack wants to merge 2 commits into
devfrom
local-db
Open

Add reusable local Supabase dev stack#31
bastislack wants to merge 2 commits into
devfrom
local-db

Conversation

@bastislack

@bastislack bastislack commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Use this to have a local DB:

supabase start
supabase db reset
flutter run -d web-server --web-port= 8080 --dart-define=USE_LOCAL_SUPABASE=true

Use admin@local.test (or dev@local.test) / password123 to login.

Provider-agnostic local DB harness so any branch can develop and test
against a local `supabase start` instance instead of prod:

- supabase/config.toml: local stack config (Podman-friendly; analytics
  disabled since its vector shipper can't bind-mount the Docker socket)
- supabase/migrations/: baseline migration (consolidated schema.sql) as the
  CLI source of truth for deterministic `supabase db reset`. Local-only -
  never pushed to prod, which already has this schema
- supabase/seed_users.sql: two throwaway login accounts (dev + admin,
  password123) with auto-created profiles
- SupabaseConfig: USE_LOCAL_SUPABASE dart-define switches local vs prod
  (defaults to prod, same URL/anon key as before)
- .vscode/launch.json: web-server port-8080 launch configs
- docs/DEV_SETUP.md: local stack walkthrough
- .gitignore: ignore CLI runtime artifacts

Seed trick catalog loads from import_tricks2.sql via config.toml. Auth-
provider-specific config stays on feature branches.
@netlify

netlify Bot commented Jul 8, 2026

Copy link
Copy Markdown

Deploy Preview for lively-torte-533cc3 ready!

Name Link
🔨 Latest commit 477f3b7
🔍 Latest deploy log https://app.netlify.com/projects/lively-torte-533cc3/deploys/6a4f5e18a8ed1e0008c3d3fa
😎 Deploy Preview https://deploy-preview-31--lively-torte-533cc3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@bastislack bastislack requested a review from Jmangles July 8, 2026 15:59
Removed comments about auth-provider-specific settings and CLI regeneration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant