DEV Community

joah levien
joah levien

Posted on • Originally published at demo.cloudrix.io

I packaged 3 months of NestJS boilerplate into a starter kit — here is what is inside

Every NestJS project starts the same way: set up auth, wire Stripe, configure Docker, write RBAC guards. After doing this three times, I packaged everything into a starter kit.

What the starter includes

Authentication

Email/password with JWT refresh token rotation, Google OAuth, magic links, two-factor authentication (TOTP), account lockout, and email verification. Not a tutorial — production code with proper error handling.

Stripe Payments

Subscriptions, one-time payments, usage-based billing, customer portal, webhook signature verification, and invoice management. Handles the edge cases tutorials skip.

Multi-Tenancy

Organizations with 4 roles (Owner, Admin, Member, Viewer), team invitations, org switching. Automatic tenant isolation at the repository level — here is how we built it.

Admin Dashboard

User management, platform statistics (MRR, churn, signups), audit logs, role management, search, and pagination.

Deployment

Docker Compose for local dev, Terraform for AWS (ECS, RDS, ElastiCache, S3, CloudFront), GitHub Actions CI/CD, Railway and Vercel configs.

Tech stack

NestJS 11, Angular 21, TypeScript, PostgreSQL, Redis, BullMQ, TypeORM, Tailwind CSS v4, Nx monorepo.

How it compares

We wrote a detailed comparison against ShipFast, Supastarter, and other boilerplates. The short version: most competitors use Next.js/React. If your team knows Angular or wants enterprise patterns (RBAC, audit logs, multi-tenancy), this is the only option that includes all of them.

See the full comparison here.

Try it

Top comments (0)