This is a simple example of how to use Prisma with Typescript, using the Prisma Client, the project includes a simple CRUD of Authors and Books.
npm installnpm run devDATABASE_URL="postgresql://postgres:postgres@localhost:5432/prisma-ts?schema=public"datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
generator client {
provider = "prisma-client-js"
}