From the course: Master Next.js by Building Scalable Apps with Routing, Databases, and Performance

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Introduction to Prisma

Introduction to Prisma

Now, let's proceed with dealing with the database and for that we are going to use an ORM that is Object Relational Mapper. ORM is basically the tool which allows you to connect the application with a database with ease. You might have worked with ORMs like SQLite, Mongoose, MySQL 2 etc. And Prisma is one such ORM which can be used for databases like MySQL, SQLite, MongoDB, PostgreSQL etc. And in this section, we are going to learn all about using Prisma with SQLite database and Next.js. We will work on the existing application where we had the products page where all the products were displayed and we could add, edit and delete a product as well. So let's start with the installation. I'll open the terminal and install Prisma. So I'll say npm i prisma Alright, now the Prisma is installed. Now we need to set up the Prisma with the desired database, which is SQLite with our project. In the next lecture, we will perform the setup procedure.

Contents