Skip to content

Instantly share code, notes, and snippets.

@nikolasburk
Last active July 1, 2023 22:59
Show Gist options
  • Save nikolasburk/1bf11828383a85d14443727ba296dd2e to your computer and use it in GitHub Desktop.
Save nikolasburk/1bf11828383a85d14443727ba296dd2e 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