Go back to full Lecture Notes Cursor Course (Udemy)

Overview

In this video, we’ll go over task 2 in the generated tasks.

If you had any issues with setting up TaskMaster or if your tasks look slightly different, then just copy and paste the tasks that I have docs.

But by the end of this video, you should have the following setup

Pre-Requisites

  1. Download Docker for your machine https://docs.docker.com/get-started/get-docker/
    1. CMD + K → Verify Docker is installed on our machine and running
  2. Download Supabase CLI here https://supabase.com/docs/guides/local-development/cli/getting-started
    1. In this project, we don’t need to initialize Supabase since we already have the folder setup.

    2. Try to run npx supabase start without Docker running

      *This takes time on your first run because the CLI needs to download the Docker images to your local machine. The CLI includes the entire Supabase toolset, and a few additional images that are useful for local development (like a local SMTP server and a database diff tool).*
      
    3. CMD + K → Verify Supabase CLI is installed on our machine

      1. /Generate Cursor Rules ensure that Supabase commands always use npx
  3. Set the API_URL and anon_key in the app/.env.local so that we’re able to do two things:
    1. API URL → So we can call the backend, which is hosted from a Docker container that runs the Supabase database locally.
    2. ANON_KEY → Key that says we’re an authorized visitor to the backend.

Video 3:

What is the Supabase Anon Key?

Bonus: Use AI to Learn 10X Faster.

Quiz: What is RLS?