Skip to content
/ auth-template Public template

Auth template for faster project setup developed with NextAuth.js v5

Notifications You must be signed in to change notification settings

Ivan011001/auth-template

Repository files navigation


NextAuth.js Template

Template for faster Next.js app setup
Explore the code »

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Contributing
  4. Contact

About The Project

This is a starter template for building web applications with Next.js and implementing authentication using NextAuth.js. Next.js is a React framework that enables server-side rendering and static site generation, providing a powerful and flexible foundation for building modern web applications. NextAuth.js is a complete authentication solution for Next.js applications, offering support for various authentication providers and a simple API for authentication flows.

Why choose this template?

  • Next.js: Utilize the power of Next.js for server-side rendering, static site generation, and client-side routing.
  • NextAuth.js: Implement authentication seamlessly with NextAuth.js, supporting authentication providers like Google, GitHub, and more.
  • Customizable: Tailor the authentication flow and user interface to suit your project's specific requirements.
  • Ready-to-use: Get started quickly with a pre-configured setup, saving time on boilerplate code and setup.

(back to top)

Key Features

This template provides a great number of features that would enhance user authorization process as well as usage experience. Here are some examples of what users can do:

  • Create accounts
  • Sign in via OAuth
  • Sign in via credentials
  • Update account's information

Built With

Next TypeScript Tailwind Postgresql Prisma EsLint Vercel

(back to top)

Getting Started

If you would like to enhance this project, here are instructions on setting it up locally. To get a local copy up and running follow these simple example steps.

Prerequisites

Make sure you have Node.js installed, check it version via

node -v

It should be higher that 18.0.0

Installation

  1. Clone the repo
    git clone https://github.com/Ivan011001/auth-template.git
  2. Install NPM packages
    npm install
  3. Create a .env file via .env.example
    const API_1 =
    const API_2 = 
    const API_3 = 
  4. Enter your variables in .env
    const API_KEY = 'ENTER YOUR API';
  5. Run the app on localhost:3000
    npm run dev

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

Contact

Ivan Nedokhodiuk - LinkedIn - [email protected]

(back to top)

About

Auth template for faster project setup developed with NextAuth.js v5

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published