2. Setting up Supabase

To get started with Supabase, you will need to set up an account and create a project. Here's how to do it:

2.1 Creating an Account

  1. Go to the Supabase website and click on the "Sign Up" button in the top right corner.
  2. Follow the prompts to create a new account. You will need to provide your email address and choose a password.

2.2 Creating a Project

  1. Once you have created your account, log in and click on the "Create Project" button in the dashboard.
  2. Give your project a name and choose a region for your data to be stored in. You will also need to create a database password. Make sure to save this password in a secure location, as you will need it later to access your database. Then click on the "Create Project" button to finish creating your project.

2.3 Accessing Your Project

  1. You should now see your new project listed in the dashboard. Click on the project name to open it and start working with Supabase.

← 1. First Steps 3. Setting up Stripe →

2.4 Auth configuration

  1. Go to the "Authentication" section of your project usually at https://app.supabase.io/project/<project-id>/auth.
  2. Go to the URL Configuration tab.
  3. Set the Site URL to http://localhost:3000 or it can also be your production domain e.g. https://myapp.com. (This is not as important as the Redirect URL configuration)
  4. Set Redirect URLs to a. http://localhost:3000/auth/callback (for local development) or http://localhost:3000/** (this means all routes under http://localhost:3000 will be accepted as a valid redirect URL) b. https://myapp.com/auth/callback (for production) or https://myapp.com/** (this means all routes under https://myapp.com will be accepted as a valid redirect URL)