This guide provides step-by-step instructions on how to set up Prisma with Postgres using Supabase. It covers prerequisites, setting up a new Supabase project, configuring Prisma in a Node.js project, defining data models, and using Prisma Client to interact with the database. The tutorial uses real-world examples involving books and authors to illustrate the process.
Table of contents
Prerequisites for Prisma + PostgresSetting Up Prisma + PostgresSetting Up Prisma in Your ProjectConfiguring Prisma + PostgresGenerating the Postgres SchemaUsing Prisma Client to Interact with Prisma + PostgresConclusionSort: