Skip to content

Repository files navigation

prismatest

A minimal minimal app with Prisma 8 and Prisma Composer.

Run locally

npm run dev:composer

This builds the app and starts it with Composer. PostgreSQL projects get a local Prisma Postgres database and apply the contract automatically.

Deploy

npm run deploy

The 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.

Prisma

  • Contract: src/prisma/contract.prisma
  • Prisma and Composer config: prisma.config.ts
  • Composer app: module.ts and service.ts

After changing the contract, run:

npm run contract:emit

To use the framework's development server directly, run npm run dev. This direct mode requires DATABASE_URL.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages