Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
/ daobook_next Public archive

NextJS re-write of my final project including custom Auth.js adapter for postgres.js

Notifications You must be signed in to change notification settings

willr42/daobook_next

Repository files navigation

Daobook - Next Edition

After creating Daobook (See that repo here) for my final project as a group project for CoderAcademy, I re-created it in NextJS using the latest app router, Server Actions, and Auth.js including building my own custom adapter.

See it live here: Daobook Next.

Dependencies

  • NextJS 13 with the experimental App Router & Server Actions. Cutting-edge tech that cut me a few times.
  • 🧮 Postgres.js and its querybuilder for all DB interaction.
  • 🧭 Auth.js, where I wrote my own custom Adapter to work with the Postgres.js library above.
  • 🎨 TailwindCSS for all styling.

Running locally

You'll need to set up the database locally and run create.sql from the db folder, and provide your environment variables as per the .env file in the root of the project. This app uses GitHub OAuth for sign-in. Something like;

# set up your db before this. Manually edit the db:reset script to your values.
pnpm run db:reset
pnpm install
pnpm run dev

About

NextJS re-write of my final project including custom Auth.js adapter for postgres.js

Resources

Stars

Watchers

Forks

Languages