OneSignalDevelopers / ngosi

Share your slides with a QR code
https://ngosi.io
MIT License
9 stars 5 forks source link

Enable fully-local development #29

Closed iAmWillShepherd closed 2 years ago

iAmWillShepherd commented 2 years ago

Solution

When this project was initially started, we were using a local Postgres database and interacting with it via Prisma; however, we've since moved on from Prisma (#). We need some way to continue local DB development. This PR enables that by configuring a locally-hosted instance of supabase.

Testing

  1. Start supabase, supabase start (note that supabase credentials are written to stdout).
  2. Login to the supabase studio
  3. Create tables using the db.sql script
  4. Update env.local with values emitted from supabase CLI
  5. Start the app, yarn dev
  6. Sign in to the app
  7. Retrieve your email from the Inbucket URL
  8. Click the email link to login

If the above works, you are reasonably assured that this is working as intended.

Note you will need docker running on your machine.

Resources

Viewing email sent from locally-hosted supabase instance

2021-12-22 16 47 38

Links

vercel[bot] commented 2 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/onesignaldevs/ngosi/5dtgFpfnSKLUxqnYsjErwUprjFkL
✅ Preview: https://ngosi-git-supabase-on-base-onesignaldevs.vercel.app

iAmWillShepherd commented 2 years ago

I merged this before your review. The things you called out are none-issues; the order is correct, and the section stating to call out stuff depends on the work introduced in the PR.