Skip to content

Repository files navigation

Next.js Authentication Application

This project showcases user authentication using NextAuth, Prisma, Shadcn/UI, and Tailwind CSS.

Screenshots

Screenshot 1 Caption for Screenshot 1.

Screenshot 2 Caption for Screenshot 2.

Features

  • User authentication with NextAuth
  • Database integration with Prisma
  • UI components from Shadcn/UI
  • Styling with Tailwind CSS

Prerequisites

Make sure you have the following installed before running the project:

  • Node.js and npm (Node Package Manager)
  • PostgreSQL database (or another supported database for Prisma)

Getting Started

  1. Clone the repository:

    git clone https://github.com/khoido2003/Next-Auth-Guide.git
    cd Next-Auth-Guide
  2. Install dependencies:

    npm install
  3. Set up your environment variables:

    Create a .env.local file in the root directory and add the following:

    DATABASE_URL=your_database_url
    NEXTAUTH_URL=http://localhost:3000
    # Add other necessary environment variables for Prisma and NextAuth
  4. Run database migrations:

    npx prisma migrate dev
  5. Start the development server:

    npm run dev

    The application will be available at http://localhost:3000.

Project Structure

  • pages/: Next.js pages
  • public/: Static assets
  • styles/: Global styles and Tailwind CSS configurations
  • components/: Reusable React components
  • prisma/: Prisma database schema and configurations

Technologies Used

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

About

Authentication, Authorization Application Example using Typescript, Prisma(PostgreSql/Neon), Shadcn/ui, Tailwind and NextJS

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages