Files
supabase/docker
Steve Chavez b0df1901c3 No access to public tables by default for anon
Users should explicitly grant privileges to `anon`(unauthenticated clients) if they want some db objects to be publicly accessed.

This caused confusion on https://github.com/supabase/supabase/discussions/1493. So the fix is to revoke default privileges for `anon`.
2021-05-11 11:28:50 -05:00
..

Supabase Docker

You can run Supabase on your local machine using docker-compose:

  • Add passwords to the .env file

  • Starting all services: docker-compose up

  • Stopping all services: docker-compose down

Usage

import { createClient } from '@supabase/supabase-js'

const SUPABASE_URL = 'http://localhost:8000'
const SUPABASE_KEY = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzdXBhYmFzZSIsImlhdCI6MTYwMzk2ODgzNCwiZXhwIjoxNjIwNzQyMTM1LCJhdWQiOiIiLCJzdWIiOiIiLCJSb2xlIjoiYW5vbiIsImp0aSI6ImQ1N2ZkMjFlLTNkYjQtNDk3YS1hNGViLTI4ZDY3Yzg2NjEwMiJ9.Uc0w024BLhWjMAAdzMJfkMxaFa82N-6pBxAtEGzrXCQ'

const supabase = createClient(SUPABASE_URL, SUPABASE_KEY)

Accessing the services directly: