Template for faster Next.js app setup
Explore the code »
Report Bug
·
Request Feature
Table of Contents
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.
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
- # via OAuth
- # via credentials
- Update account's information
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.
Make sure you have Node.js installed, check it version via
node -v
It should be higher that 18.0.0
- Clone the repo
git clone https://github.com/Ivan011001/auth-template.git
- Install NPM packages
npm install
- Create a
.env
file via.env.example
const API_1 = const API_2 = const API_3 =
- Enter your variables in
.env
const API_KEY = 'ENTER YOUR API';
- Run the app on
localhost:3000
npm run dev
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!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Ivan Nedokhodiuk - LinkedIn - nedokhodiukivan@gmail.com