Skip to content

SouravBandyopadhyay/next-role-based-auth

Repository files navigation

Next.js Role-Based Authentication Starter Template

This is a starter template for a Next.js project with Shadcn (Auth0) and Tailwind CSS, designed to kickstart your web application development with role-based authentication.

Features

  • Next.js: A React framework for building web applications.
  • Shadcn (Auth0): Secure and scalable authentication and authorization platform.
  • Tailwind CSS: A utility-first CSS framework for rapid UI development.
  • Role-Based Authentication: Implement user roles for controlling access to different parts of your application.
  • Resend: For Sending Email Notifications.

Getting Started

Prerequisites

Make sure you have Node.js and npm installed on your machine.

# Clone the repository
git clone https://github.com/your-username/your-project.git

# Navigate to the project directory
cd your-project

# Install dependencies
npm install


### Reference
 - https://www.youtube.com/watch?v=MNm1XhDjX1s
 - https://dev.to/mfts/how-to-send-a-warm-welcome-email-with-resend-next-auth-and-react-email-576f


### NOTE
 - Generate Random Key
openssl rand -base64 32

Additional Notes

  • Github login: By default, GitHub login is configured as admin login.
  • Google User or Created User by Admin: Members can sign up using Google account or via manual registration by the admin.