- Pull the changes from your local repository using
git pull origin main
- Install the dependencies
npm install
- Create
.env
file in root project directory
DATABASE_URL = <your_local_db_url>
SUPABASE_SERVICE_ROLE_KEY = <local_supabase_role_key>
GOOGLE_CLIENT_ID = <your_google_client_id>
GOOGLE_CLIENT_SECRET = <your_google_client_secret>
above values are available when run
npx supbase status
To get GOOGLE_CLIENT_ID
and GOOGLE_CLIENT_SECRET
watch this
Vedio
- Create
.env.local
file in root project directory
NEXT_PUBLIC_SUPABASE_URL = <local_supabase_api_url>
NEXT_PUBLIC_ANNON_KEY = <local_supabase_anon_key>
NEXTAUTH_URL = "http://localhost:3000" //this should be your next app server url
NEXTAUTH_SECRET = "secrete"
- Push the shema changes to supabase
npx prisma db push
- Seed the data to database
npx prisma db seed
- Generate types in supabase
npx supabase gen types typescript --local > ./types/supabase.ts
- Run dev server
npx supabase gen types typescript --local > ./types/supabase.ts