Getting Started with Prisma
Lesson write-up coming soon
Getting Started with Prisma
Wrapping Up
RyanChenkie
Full Stack Instructor
We can run into issues when working with Prisma in a Next.js application if we have too many instances. In this lesson, we see how to use a global Prisma instance.
Welcome and Getting Started
Clone the Finished Project and Install Dependencies
SocialCue repo: https://github.com/chenkie/socialcue In this lesson we clon...
Clone the Starting Point and Install Dependencies
In this lesson we see how to clone the starting point of the SocialCue repo...
Install the Prisma VS Code Extension
Prisma offers an extension for VS Code that helps greatly with development....
Installing and Initializing Prisma
Our First Data Model
Define a Data Model in the Prisma Schema
After Prisma is installed, the first step to working with a database is to ...
Add a Table to the Database with a Prisma Migration
After defining a model, we need to run a migration to sync up the state of ...
View and Manage Database Tables with Prisma Studio
Prisma Studio is a database client GUI that helps us easily manage data in ...
Querying for Data from the App
Query for Data in getSeverSideProps
Next.js offers a great way to have server-side rendering in our application...
Enable Query Logging in Prisma Client
In this lesson, we see how to enable query logging in Prisma Client so that...
Create Data Using Prisma Client
Prisma Client has methods for creating new data and offers a type-safe way ...
Modelling Relations
Define Multiple Data Models in the Prisma Schema
Our app needs three tables in total. In this lesson, we see how to model ou...
Define a One-to-Many Relation in the Prisma Schema
Prisma allows us to easily establish one-to-many relations between our data...
Define a Many-to-Many Relation in the Prisma Schema
Prisma has great features for supporting many-to-many relations and can com...
Create Related Records Using Prisma Studio
Prisma Studio has great support for establishing relations between two tabl...
Prisma Queries for Full CRUD
Use Prisma Queries while Server-Side Rendering a Next.js App
In this lesson, we change our or call to a static dataset for a call to Pri...
Query for Data with Relations in getServerSideProps
In this lesson, we finish out the queries from getServerSideProps by furnis...
Update and Delete Campaigns Data with Prisma Client
We can use Next.js API routes to manage our CRUD operations. In this lesso...
Update and Delete Providers Data with Prisma Client
In this lesson, we finish out CRUD operations for the providers data.
Update and Delete Posts Data with Prisma Client
In this lesson, we finish out CRUD operations for the posts data.
Prisma Types
Wrapping Up
Lesson write-up coming soon
Lesson Resources
Get the code for this lesson