This is an example blog app showing the best practices when using Prisma with PlanetScale.
The app is built with Next.js, however, all the workflows demonstrated apply to other frameworks.
To learn more about Prisma & PlanetScale best practices check out the video accompanying this repository:
Clone the repo and install the dependencies:
# with npm
npm i
Create .env
by copying the example:
cp .env.example .env
Set the DATABASE_URL
with the connection string from PlanetScale
# with npm
npm run dev