Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 1.23 KB

README.md

File metadata and controls

27 lines (21 loc) · 1.23 KB

Supabase (public)

This directory contains only safe, public examples for local development. The production Supabase backend (migrations, policies, functions, deployment) lives in a separate private repository. See docs/architecture/OPEN_SOURCE_BOUNDARY.md.

Local development

No Supabase project is required to contribute — backend features (GitHub login + favorites) are off by default (NEXT_PUBLIC_BACKEND=false in .env.example) and the site runs UI-only without them.

To enable them, the frontend needs one table (favorites) plus GitHub auth. To set that up on a personal or local Supabase project:

  1. Create a project at supabase.com (or run supabase start locally).
  2. Run examples/favorites.sql in the SQL editor.
  3. Enable the GitHub auth provider (see "GitHub authentication setup" in the root README).
  4. Copy .env.example to .env.local, set NEXT_PUBLIC_BACKEND=true, and fill in NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY.

The examples mirror the production schema the frontend depends on, but this repository is not intended to reproduce the complete hosted backend.