Skip to content

ylevanon/legend-state-example

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors