Skip to content

Latest commit

 

History

History
70 lines (46 loc) · 850 Bytes

README.md

File metadata and controls

70 lines (46 loc) · 850 Bytes

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