Skip to content

Instantly share code, notes, and snippets.

@dragcotech
Forked from nikolasburk/nextjs-and-prisma.md
Created January 17, 2022 16:07
Show Gist options
  • Select an option

  • Save dragcotech/541020f08de1baf76453ffab91fd5c33 to your computer and use it in GitHub Desktop.

Select an option

Save dragcotech/541020f08de1baf76453ffab91fd5c33 to your computer and use it in GitHub Desktop.
Fullstack Apps with Next.js and Prisma (PostgreSQL, MySQL & SQLite)

πŸš€ Fullstack Apps with Next.js and Prisma

Next.js blurs the lines between client and server. It supports pre-rendering pages at build time (SSG) or request time (SSR). Prisma is the perfect companion if you need to work with a database in a Next.js app.

Here is a list of example apps that are based on Next.js and use Prisma on the server to access data from a database:

✍️ Language πŸ€– Server πŸ” Authentication πŸ”— URL
TypeScript API Routes Yes (via NextAuth.js) URL
TypeScript API Routes No URL
TypeScript Express.js No URL
TypeScript Apollo Server (GraphQL) No URL
JavaScript API Routes No URL

All examples are ready-to-run with a simple yarn install and yarn dev. They are based on SQLite, but thanks to Prisma you can easily connect your own PostgreSQL or MySQL database instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment