Add reusable local Supabase dev stack - #31
Merged
Merged
Conversation
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.
✅ Deploy Preview for lively-torte-533cc3 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Removed comments about auth-provider-specific settings and CLI regeneration.
Owner
|
On the local test db migration sql there's no trick delete permission, shouldn't really matter though. You can just do: grant insert, update, delete on tricks to authenticated; Around line 230 |
Collaborator
Author
|
I learned about declarative schemas and thought this would be a nice concept for us to use, so I changed this PR accordingly. Hope this is fine :) |
This was referenced Jul 15, 2026
Jmangles
pushed a commit
that referenced
this pull request
Jul 16, 2026
* Add reusable local Supabase dev stack (#31) Use declarative schemas for future migrations * chore: Remove delete grant (#32) * fix: Mirror actual prod state of tricks in local db (#35) * feat: Port consistency slider from old Highline Freestyle app (#28) * feat: Port consistency slider from old Highline Freestyle app * fix: Make sure first and last label in consistency slider have enough padding from the edges of the screen * fix: Use declarative schema * chore: Add delete-trick grant (#34) * Allow users to provide feedback (#29) * feat (Draft): Allow users to provide feedback * feat: Allow users to provide feedback * Quick user switch in local-db mode * Add multiple attachments + download them * chore: Remove stale draft feedback SQL superseded by migration * fix: hide feedback icon when logged out (#36) * feat: Long press trick-card to change consistency (#37)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use this to have a local DB:
Use admin@local.test (or dev@local.test) / password123 to login.