1. 2
    Install and Set up Prisma for a New Project
    2m 52s

Install and Set up Prisma for a New Project

Xiaoru Li
InstructorXiaoru Li

Share this video with your friends

Send Tweet

Prisma makes database access easy with an auto-generated and type-safe query builder.

In this lesson, we will learn how to install all the necessary dependencies and set up Prisma for an existing npm project, with an empty PostgreSQL database running in the background. We will create our first Prisma data model in the schema, and use Prisma Migrate to map our data model into the database.

Finally, we'll generate the Prisma Client into our node_modules directory, so later we can simply import and use the client tailored to our data models as a normal npm package in the project.

At the time of recording this lesson, Prisma Migrate is in an experimental state, so the extra flag --experimental is needed to perform the save and up commands.