Skip to content

The following is an example implementing Lucia email authentication with Sqlite.

Notifications You must be signed in to change notification settings

codingwithmanny/nextjs-lucia-auth-email-sqlite

Repository files navigation

NextJS Lucia Auth Email Sqlite

The following is an example implementing Lucia email authentication with Sqlite.

Requirements

  • Node v20 or greater
  • Pnpm

Quick Setup

1 - Install Dependencies

# FROM: ./

pnpm install;

2 - Set Environment Variables

# FROM: ./

cp .env.example .env;

3 - Generate Local Database

# FROM: ./

pnpm db:gen;

4 - Push Database Changes

# FROM: ./

pnpm db:push;

5 - Run App

# FROM: ./

pnpm dev;

# [Expected Output]:
#   ▲ Next.js 14.2.3
#   - Local:        http://localhost:3000
#   - Environments: .env.local
# 
#  ✓ Starting...
#  ✓ Ready in 1785ms

5 - Run Drizzle Studio

# FROM: ./

pnpm db:studio;

# [Expected Output]:
# ...
# Drizzle Studio is up and running on https://local.drizzle.studio

About

The following is an example implementing Lucia email authentication with Sqlite.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published