better-auth-zenstack-multitenancy icon indicating copy to clipboard operation
better-auth-zenstack-multitenancy copied to clipboard

A multi-tenant Todo app built with better-auth and ZenStack

This is the companion project of the blog post When Embedded AuthN Meets Embedded AuthZ - Building Multi-Tenant Apps With Better-Auth and ZenStack.

The project is based on better-auth's Next.js demo project.

Getting Started

  1. Copy ".env.example" to ".env" and fill in the variables.

  2. Install dependencies

    npm install
    
  3. Prepare the database

    npx zenstack generate
    npx prisma db push
    
  4. Start dev server

    npm run dev