DEV Community

Gazzel16
Gazzel16

Posted on

Next.js + Supabase Starter Template (Prisma, Redux, Swagger)

Why I open-sourced this:

I kept rebuilding the same setup for every new project — Next.js API routes, Prisma, Supabase, folder structure, and deploy steps. It was repetitive, and I wasted time deciding where code should live instead of building features.

So I packaged the pattern I actually use into one repo: layered backend, Redux for CRUD, Swagger docs, and a clear path to Vercel + Supabase Cloud.

I open-sourced it so I (and anyone else) can clone → customize → ship without starting from scratch every time.

If it saves you even one weekend of wiring, it was worth sharing.

What's included:

  • Next.js 16 (App Router) + TypeScript + Tailwind
  • Supabase Postgres (local Docker for dev, cloud for prod)
  • Prisma 7 with layered API: route → controller → repository
  • Redux Toolkit for client state and CRUD thunks
  • OpenAPI + Swagger UI at /docs
  • Reference CRUD module (categories) — copy for new entities
  • Deploy to Vercel + Supabase Cloud — no separate backend server
  • Clone, customize your schema, and ship

If this template helps you, leave a like on this post and a star on the repo — it helps others find it and keeps me motivated to improve it.

Repo: https://github.com/Gazzel16/nextjs-supabase-starter

Thanks for reading!

Top comments (0)