Contents

Chapter 1

Features

This chapter covers the core features and capabilities of SaaS Boilerplate.

Features

  • User management — Registration, authentication, password hashing (PBKDF2-HMAC-SHA256)
  • Role-based access control — Admin, member, and viewer roles with permission checks
  • Multi-tenant scaffolding — Tenant context, per-tenant data isolation
  • Application settings — JSON-persisted settings with defaults and validation
  • Session management — Token-based sessions with expiration and rotation
  • Audit logging — Structured log of all user and system operations
  • HTTP server — Built-in routing with middleware pipeline
  • Configuration — Environment variables or JSON config file

Requirements

  • Python 3.10+
  • No external dependencies (stdlib only)
Chapter 2

Quick Start

Follow this guide to get SaaS Boilerplate up and running in your environment.

Quick Start

bash
# Start the server with demo data
python src/main.py --init-demo

# Start on a custom port
python src/main.py --port 9000

# Start clean (no demo data)
python src/main.py

Then open http://localhost:8000 and try the API:

bash
# Register a user
curl -X POST http://localhost:8000/api/auth/register \
  -H "Content-Type: application/json" \
  -d '{"email": "admin@example.com", "password": "changeme123", "name": "Admin"}'

# Login
curl -X POST http://localhost:8000/api/auth/login \
  -H "Content-Type: application/json" \
  -d '{"email": "admin@example.com", "password": "changeme123"}'

# List users (requires auth token from login response)
curl http://localhost:8000/api/users \
  -H "Authorization: Bearer <token>"

API Endpoints

MethodPathDescription
POST/api/auth/registerRegister a new user
POST/api/auth/loginLogin and receive session token
POST/api/auth/logoutInvalidate session
GET/api/usersList users (admin only)
GET/api/users/:idGet user details
PUT/api/users/:idUpdate user
GET/api/settingsGet application settings
PUT/api/settingsUpdate settings (admin only)
GET/api/tenantsList tenants
POST/api/tenantsCreate a tenant
GET/api/auditView audit log (admin only)
Chapter 3
🔒 Available in full product

Configuration

Chapter 4
🔒 Available in full product

License

You’ve reached the end of the free preview

Get the full SaaS Boilerplate and unlock everything.

All Chapters

Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.

Full Tool Suite

Access all interactive tools with complete data, all workload profiles, and the full scenario library.

Source Files

Downloadable source code, configuration files, and working examples from every chapter.

Lifetime Updates

Free updates for life. Every new chapter, tool, and improvement included.

Buy Now — $29 →
📦 Free sample included — download another copy for the full product.
SaaS Boilerplate v1.0.0 — Free Preview