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.

Start a new project

Use this path if you are creating a new app and want to set up Prisma from the beginning.

Add Prisma to an existing project

Use this path if you already have an application or database and want to add Prisma ORM.

What you will do

Most Prisma ORM and Prisma Postgres guides follow the same basic flow:

  1. Define a database connection and data model in your Prisma schema.
  2. Set up your database, either with Prisma Postgres or another supported database.
  3. Install Prisma CLI and Prisma Client.
  4. Run prisma generate to create a type-safe client for your schema.
  5. Create or introspect your database.
  6. Start sending queries from your application.

Then you can deploy your app to Prisma Compute. The flow is:

  1. Sign in with npx @prisma/cli@latest auth login.
  2. Run npx @prisma/cli@latest app deploy from your app directory to get a live URL.
  3. Connect your app to Prisma Postgres or another database with environment variables.
  4. Redeploy to apply the environment variables.
  5. 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:

If you want the fastest path

On this page