Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 708 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 708 Bytes

Lucia-Auth with NextJS

A test project to try out Lucia-Auth with NextJS App router using a PostgreSQL docker container as database.

Usage:

First rename .env.example to .env

Then start the postgres docker container by running this command:

docker compose up -d  # this will start it in detached mode
pnpm install # npm install 
pnpm prisma db push # npx prisma db push

Now you can create users at http://localhost:3000/signup and login at http://localhost:3000/login after that. Remember this is just the bare minimum to get starting. You MUST secure your database with better credentials.