ubiquity-os / database

Hold database setup and migrations.
0 stars 0 forks source link

Supabase Database Adapter

Supabase is used to store contributor profiles and task information.

How to set up supabase project locally

  1. To get started with supabase, you have to create a project at Supabase. Once you create a project, please put both variables into .env file.
SUPABASE_URL=XXX
SUPABASE_KEY=XXX
  1. The Supabase CLI available as a node package through the dev dependencies provides tools to develop your project locally and deploy to the Supabase Platform. Most common useful commands are
bun supabase start
bun supabase migration
bun supabase db push
bun supabase projects
bun supabase gen types
  1. Link the local project to the supabase project you created.
bun supabase link -p PASSWORD --project-ref PROJECT_REF

For more information about arguments, please go through here

Database Operation