A minimal minimal app with Prisma 8 and Prisma Composer.
npm run dev:composerThis builds the app and starts it with Composer. PostgreSQL projects get a local Prisma Postgres database and apply the contract automatically.
npm run deployThe deploy script builds the framework output, provisions Prisma Postgres when selected, applies migrations, and deploys the app to Prisma Compute.
The starter users are inserted idempotently from src/prisma/seed.ts on the first database query through the Composer service binding.
- Contract:
src/prisma/contract.prisma - Prisma and Composer config:
prisma.config.ts - Composer app:
module.tsandservice.ts
After changing the contract, run:
npm run contract:emitTo use the framework's development server directly, run npm run dev. This direct mode requires DATABASE_URL.