nestjs-zod-better-auth

Inovetix Boilerplate

A matched pair of boilerplates for this stack: NestJS + Prisma + nestjs-zod + Better Auth on the backend, Next.js + TanStack Query + react-hook-form/zod + that same Better Auth setup on the frontend.

Get started

Backend

nestjs-boilerplate

git clone https://github.com/Inovetixltd/nestjs-boilerplate.git myproject-api
cd myproject-api
git remote rename origin upstream
Repo & README

Frontend

frontend-boilerplate, branch nestjs-zod-better-auth

git clone -b nestjs-zod-better-auth https://github.com/Inovetixltd/frontend-boilerplate.git myproject-web
cd myproject-web
git remote rename origin upstream
Repo & README

Swap myproject-* for your actual project name. Renaming the remote to upstream leaves origin free for your project's own repo, so git fetch upstream keeps working for pulling in boilerplate updates later. Full setup docs live in each repo's own README — this page is just the map.

Core features

Baked into both boilerplates because almost every project needs them. They're also the reference examples for how code in this codebase is supposed to look — see llm/ for the rules behind them.

Auth

Industry-standard auth, built on Better Auth.

Files

Abstracted file management, backed by any S3-compatible storage out of the box.

Realtime

Websockets on Pusher, the industry-standard protocol.

Notifications

An opinionated realtime notification system, ready to go.

Email

React Email templates behind an abstracted provider, with Mailpit for e2e testing.