This is a template for building web applications with Next.js, Lucia for authentication, and Drizzle ORM for database operations.
- Enable users to access your application securely without the need for passwords.
- Seamless integration with popular providers like GitHub and Google.
- Enhance security with password authentication and reset password functionality.
- Manage routes and access control effortlessly with middleware routing.
- Add an extra layer of protection to your application with two-factor authentication (2FA).
- Impress your users with stunning, custom email communications.
- Combat spam and abuse with built-in rate limiting.
To get started with this template, follow these steps:
-
Clone this repository:
git clone https://github.com/teo-goulois/nextjs-lucia-auth-drizzle-orm-template.git
-
Navigate into the project directory:
cd nextjs-lucia-auth-drizzle-orm-template
-
Install dependencies:
pnpm install
-
Set up environment variables:
Create a
.env.local
file in the root of the project and add the environment variables from the.env.example
file. -
Run the development server:
pnpm dev
-
Open your browser and navigate to http://localhost:3000 to see the application running.
this boilerplate offers a seamless authentication experience for your Next.js projects. Customize authentication methods, manage routes, and ensure secure access for your users.
this boilerplate supports authentication with popular providers such as GitHub, Google, and more. Integrate authentication effortlessly and provide users with multiple login options.
Enhance user experience and security with password-less authentication. Enable users to access your application via email links or codes without the need for passwords.
Simplify route management and access control with middleware routing. Define custom routes and ensure a smooth navigation experience for your users.
Add an extra layer of security to your application with two-factor authentication (2FA). Protect sensitive data and prevent unauthorized access with 2FA support.
We welcome contributions from the community! To contribute to this boilerplate, please follow these guidelines:
- Fork the repository
- Create a new branch (
git checkout -b feature
) - Make your changes
- Commit your changes (
git commit -am 'Add feature'
) - Push to the branch (
git push origin feature
) - Create a new Pull Request
If you find a bug or have a feature request, please open an issue.
This project is licensed under the MIT License - see the LICENSE file for details.