Skip to main content
Prisma Documentation Docs
current

Search documentation

Type to search this documentation.

On this pageOverview

Local development

Develop against the Prisma stack locally. Run your app on Bun, start a local Prisma Postgres database with prisma dev, and use local stand-in buckets for object storage.

Local development with Prisma means running the stack you deploy, on your machine. You build and test against local pieces, then ship the same code to Prisma Compute and Prisma Postgres without changing application logic.

Each piece of the platform has a local counterpart:

  • Your app runs with your framework's dev server or with Bun directly. Prisma Compute runs deployed apps on Bun, so there is no platform emulator to install: the runtime you develop against is the runtime you ship. See Local app.
  • Your storage is S3-compatible, so the same client code works against a hosted bucket and a local stand-in. See Local storage.
  • Your database runs as a local Prisma Postgres instance, started with one command and no Postgres install. See Local Postgres.

Apps deploy to Compute as Prisma Composer apps, and the pipeline a deploy runs is the same one you run locally: dev brings your app up, whether it is one service or several, against local stand-ins for Compute and Prisma Postgres, with no cloud credentials. See Local development in Composer.

The local stack is designed so that switching to the hosted platform is a configuration change, not a code change:

  1. Deploy your app with deploy: the same declarations that ran against local stand-ins provision hosted services, Prisma Postgres databases, and buckets on the platform.
  2. For connections you wired by hand, point DATABASE_URL at a hosted Prisma Postgres database and swap local bucket credentials for a minted access key.
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu