Skip to content

Latest commit

 

History

History

with-legend-state-supabase

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Expo App with Legend-State and Supabase Realtime

Supports Expo iOS Supports Expo Android

Local-first Expo App with Legend-State and Supabase.

Setup

  • Create Supabase account at database.new.
  • Create .env.local file by running cp .env.local.example .env.local.
  • Add your credentials from the Supabase Dashboard.
  • Run supabase link to link your local project to your Supabase project.
  • Run supabase db push to apply the init migration to your Supabase database.

🚀 How to run locally

  • Run yarn or npm install.
  • Run yarn start or npm run start to try it out.
    • Press a │ open Android
    • Press i │ open iOS simulator
    • Press w │ open web

How to generate types

supabase start
supabase gen types --lang=typescript --local > utils/database.types.ts