Choose a setup path
Choose the fastest path to start using Prisma ORM, Prisma Postgres, or Prisma Compute in a new or existing TypeScript project.
Prisma gives you a few starting points depending on what you want to do first: deploy an app, create a database, use Prisma ORM locally, or add Prisma to an existing project.
Choose your path
Deploy a full-stack app with a database
Use this path if you want to deploy a TypeScript app with Prisma Compute and run it alongside Prisma Postgres.
- Deploy your first app on Prisma Compute, currently in Public Beta, to run it next to your Prisma Postgres database
Start a new project
Use this path if you are creating a new app and want to set up Prisma from the beginning.
- Quickstart with Prisma Postgres for the fastest end-to-end path with a managed PostgreSQL database
- Quickstart with PostgreSQL if you want to work with PostgreSQL
- Quickstart with SQLite for a lightweight local setup
- Quickstart with MySQL if your application uses MySQL
- Quickstart with MongoDB if your application uses MongoDB
Add Prisma to an existing project
Use this path if you already have an application or database and want to add Prisma ORM.
- Add Prisma ORM to an existing PostgreSQL project
- Add Prisma ORM to an existing MySQL project
- Add Prisma ORM to an existing SQLite project
- Add Prisma ORM to an existing MongoDB project
- Add Prisma ORM to an existing Prisma Postgres project
What you will do
Most Prisma ORM and Prisma Postgres guides follow the same basic flow:
- Define a database connection and data model in your Prisma schema.
- Set up your database, either with Prisma Postgres or another supported database.
- Install Prisma CLI and Prisma Client.
- Run
prisma generateto create a type-safe client for your schema. - Create or introspect your database.
- Start sending queries from your application.
Then you can deploy your app to Prisma Compute. The flow is:
- Sign in with
npx @prisma/cli@latest auth login. - Run
npx @prisma/cli@latest app deployfrom your app directory to get a live URL. - Connect your app to Prisma Postgres or another database with environment variables.
- Redeploy to apply the environment variables.
- Keep deploying from the CLI, or connect GitHub to deploy on push.
Next steps
After setup, these pages are usually the next ones people need:
- Prisma Client overview
- Generating Prisma Client
- Prisma Migrate getting started
- Prisma schema overview
If you want the fastest path
- Quickstart with Prisma Postgres if you want Prisma to provision the database layer for you
- Open Prisma Studio if you want to inspect and edit data visually once your app is running
- Review pricing if you're evaluating Prisma Postgres or other paid workflows for a team