The following is an example implementing Lucia magilink authentication with postgres.
- Node
v20
or greater - Pnpm
- Docker
# FROM: ./
pnpm install;
# FROM: ./
cp .env.example .env;
# FROM: ./
pnpm db:up;
# FROM: ./
pnpm db:gen;
# FROM: ./
pnpm db:push;
# FROM: ./
pnpm dev;
# [Expected Output]:
# ▲ Next.js 14.2.3
# - Local: http://localhost:3000
# - Environments: .env.local
#
# ✓ Starting...
# ✓ Ready in 1785ms
# FROM: ./
pnpm db:studio;
# [Expected Output]:
# ...
# Drizzle Studio is up and running on https://local.drizzle.studio
# FROM: ./
open http://localhost:8025
# FROM: ./
pnpm db:down;