Documentation
SaaS Starter API & Setup Guide
Everything you need to get your SaaS up and running. From initial setup to API reference.
Quick Start
Go from zero to a running SaaS in under 5 minutes.
Clone & Install
$ git clone [your-download-link] my-saas
$ cd my-saas && npm install
Install all dependencies (~60 seconds).
Configure Environment
$ cp .env.example .env
# Add your JWT_SECRET, STRIPE_SECRET_KEY, RESEND_API_KEY
All required keys are listed in .env.example with instructions.
Start the Database
$ docker compose up -d
Starts PostgreSQL, Redis, pgAdmin, and RedisInsight.
Run the App
$ npx nx serve api
$ npx nx serve web
API runs on localhost:3000, frontend on localhost:4200.
Documentation
Browse guides, API reference, and resources.
Setup Guide
Step-by-step walkthrough from cloning the repo to running your first request. Covers environment, Docker, database, and third-party services.
API Reference (Swagger)
Interactive API documentation with request/response schemas, authentication details, and the ability to test endpoints live.
Email Templates
Preview all 7 transactional email templates — welcome, password reset, invoice, team invitation, and more.
Architecture Overview
Understand the Nx monorepo structure, NestJS modules, Angular pages, shared libraries, and how everything connects.
Deployment Guide
Deploy to AWS with Terraform, Railway, Vercel, or any Docker host. CI/CD pipelines with GitHub Actions included.
Blog & Tutorials
Technical articles on NestJS, Angular, authentication patterns, Stripe integration, and SaaS best practices.
API at a Glance
50+ endpoints organized into clean, RESTful modules.
Auth
Login, register, OAuth, 2FA, magic links, refresh tokens
12 endpoints
Users
CRUD, profile, avatar, password change
8 endpoints
Organizations
Create, invite, roles, switch tenant
10 endpoints
Payments
Stripe checkout, subscriptions, webhooks, portal
6 endpoints
Files
S3 upload, image resize, signed URLs
4 endpoints
API Keys
Generate, rotate, revoke, scope
5 endpoints
Admin
User management, stats, audit logs
6 endpoints
Webhooks
Register endpoints, HMAC signing, delivery logs
4 endpoints
Health
DB, memory, disk checks
3 endpoints
Ready to Get Started?
Get the full source code and start building your SaaS today.