Skip to content

A starter setup for people who wants to use NextJS 14 + Lucia (credentials login) + DrizzleORM

Notifications You must be signed in to change notification settings

hampak/nextjs-lucia-drizzle

Repository files navigation

NextJS + Lucia + Drizzle

This is a starter for those who want to integrate NextJS, Lucia, and Drizzle ORM for their projects. I have a blog post on this here. I'm also using NeonDB for my database.

There are more features to be added such as...

  • shortening the session's lifetime
  • adding toast notifications
  • adding a logout button

You can progressively add new features (such as the ones above).

Steps

  • download and run npm i
  • create .env file
  • add the DATABASE_URL value in your .env file
  • run npm run dev
  • try creating new user

You can also run npx drizzle-kit studio to check the data being stored in your db

About

A starter setup for people who wants to use NextJS 14 + Lucia (credentials login) + DrizzleORM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published