Coder Social home page Coder Social logo

salimi-my / next-auth-starter Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 616 KB

This is a complete authentication example app built using Next.js 14 and Auth.js, including server actions.

Home Page: https://auth.salimi.my

CSS 1.15% TypeScript 98.72% JavaScript 0.13%
authjs neon nextauthjs nextjs14 postgresql prisma react-email resend shadcn-ui tailwind

next-auth-starter's Introduction

Auth · Author Salimi

This is a complete authentication example app built with Next.js 14 and Auth.js using the latest server actions. Sign in & sign up can use credentials or oauth providers with Google or GitHub. Authentication includes password reset, email verification, two factor authentication & role gate.

Next.js authentication starter

  • Light / dark / system mode
  • PostgreSQL, Neon & Prisma for database
  • NextAuth.js v5 or Auth.js for authentication
  • React Email for email templating
  • Resend for sending email
  • Using Next.js 14 Server Action

Tech/framework used

  • Next.js 14
  • Shadcn/ui
  • NextAuth.js v5 / Auth.js
  • Tailwind CSS
  • TypeScript
  • PostgreSQL
  • Neon
  • Prisma
  • React Email
  • Resend

Starting the project

Open the .env.example and fill in your Prisma, Auth & Resend Configurations then save it as .env the run the following command:

npm install
npx prisma generate
npx prisma db push
npm run dev

Demo

Hosted privately on personal DigitalOcean Droplet. Click here to visit.
Direct link: https://auth.salimi.my

Screenshots

Homepage

Homepage

Sign in

Sign in

Sign up

Sign up

Settings

Settings

next-auth-starter's People

Contributors

salimi-my avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.