Course

Setting Up Prisma

Setup Prisma

Let's setup a basic NextJS application using the app router.

npx create-next-app@latest my-project
cd my-project

Prisma is fairly easy to setup once we're in our project.

First we'll install the dependencies.

npm install prisma --save-dev
npm install @prisma/client

Then we'll use prisma's built-in setup tool by running :

npx prisma init

The command doesn't modify any current files in your project. What it does do- is create a directory with a barebones file to define your database structure in.

Prisma isn't the database itself. Prisma is just an ORM that helps us communicate with the database. Prisma supports many different types of Databases:

  • MSSQL Server
  • MySQL
  • PostgreSQL
  • CockroachDB
  • SQLite
  • MongoDB
  • MariaDB

And more.

Additional Tools:

I highly recommend using the to help you write your Prisma schema files. It's a great tool to help you write your schema files. You can find it here.

In the next lesson we'll setup our database that we'll connect to Prisma.

0 Comments

"Please login to view comments"

glass-bbok

Join the Conversation!

Subscribing gives you access to the comments so you can share your ideas, ask questions, and connect with others.

Upgrade your account
tick-guideNext Lesson

Setting Up Supabase