Skip to content
Developer Resources

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.

1

Clone & Install

$ git clone [your-download-link] my-saas

$ cd my-saas && npm install

Install all dependencies (~60 seconds).

2

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.

3

Start the Database

$ docker compose up -d

Starts PostgreSQL, Redis, pgAdmin, and RedisInsight.

4

Run the App

$ npx nx serve api

$ npx nx serve web

API runs on localhost:3000, frontend on localhost:4200.

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.