This is an example blog app showing how to use the Prisma ORM with the Prisma Data Proxy in a Next.js app deployed to Vercel.
For comparison the blog uses two rendering approaches to display blog posts:
Docs for the Prisma Data Proxy
Clone the repo and install the dependencies:
# with npm
npm i
docker-compose up -d
Create .env
by copying the example:
cp .env.example .env
Make sure that the DATABASE_URL
has been set:
DATABASE_URL="postgresql://test-user:test-password@localhost:5432/vercel-prisma-data-proxy?schema=public"
npx prisma migrate dev
# with npm
npm run dev