Authentication with

Next-Auth, Prisma and Tailwinds

This is a boilerplate of a NextJS project, using Tailwinds, and fully working Next-Auth with credentials stored with Prisma.

Next.js

The React Framework for Production

Next.js gives you the best developer experience with all the features you need for production: hybrid static & server rendering, TypeScript support, smart bundling, route pre-fetching, and more. No config needed.

Prisma

Next-generation ORM for Node.js and TypeScript

Prisma helps app developers build faster and make fewer errors with an open source ORM for PostgreSQL, MySQL and SQLite.

NextAuth.js

Authentication for Next.js

NextAuth.js is a complete open source authentication solution for Next.js applications.

Tailwindcss

Rapidly build modern websites without ever leaving your HTML.

A utility-first CSS framework packed with classes like flex, pt-4, text-center and rotate-90 that can be composed to build any design, directly in your markup.

Steps to run it:

  • set values to .env
  • npm install
  • prisma migrate dev --preview-feature
  • npm run dev