.NET React Templates

Next SaaS Template

Next SaaS is a .NET 10, ServiceStack, ASP.NET Core Identity, React 19, and Next.js 16 template for multi-tenant B2B SaaS products. Acme, the included document-storage product, is intentionally small: it demonstrates subscriptions, quotas, storage, analytics, teams, and operations without imposing a product domain.

Next SaaS Operations Center

Start here

New developers should follow the onboarding path in order. It takes the application from a clean checkout to a verified product change and optional Stripe sandbox subscription.

  1. Understand the template
  2. Run it locally
  3. Tour the project
  4. Customize the product
  5. Add a metered feature
  6. Connect Stripe sandbox
  7. Verify and ship

Reference documentation

One-Runtime Production Architecture

The remaining documentation is organized by task and can be read independently:

The planned onboarding, concept, feature, development, operations, and security documentation sets are now present. Existing root-level documents remain available as compatibility entry points where material has moved into this structure.

Documentation conventions

  • Paths are relative to the repository root unless stated otherwise.
  • Workspace is the internal code and database term; the product UI calls it an Organization.
  • C# request and response types in MyApp.ServiceModel are authoritative. MyApp.Client/lib/dtos.ts is generated.
  • Configuration keys use JSON notation in prose, such as Saas.EnableTrials, and double underscores in environment variables, such as Saas__EnableTrials.
  • Commands assume a Bash-compatible shell on Linux or macOS. Equivalent PowerShell commands can be used on Windows.

Quick command index

# Run locally
cd MyApp
dotnet watch

# Diagnose local configuration
./scripts/doctor.sh

# Recreate development state
ASPNETCORE_ENVIRONMENT=Development ./scripts/reset-dev.sh --yes

# Run every validation gate
./scripts/verify.sh

# Check production configuration and run verification
./scripts/preflight.sh

Useful application surfaces:

URLPurpose
/Public product site
/dashboardCustomer organization overview
/adminOperations Center overview and side navigation
/admin/customersCustomer 360 and customer exceptions
/admin/plansPlans and Coupons tabs for catalog and discount management
/admin/usagePlatform usage analytics and quota pressure
/admin/operationsFailed work queues and integration readiness
/admin/securityRetention, support access, and platform audit
/admin/settingsPlatform configuration ownership
/admin-uiServiceStack administration
/scalar/v1OpenAPI reference
/uiServiceStack API Explorer
/upProcess liveness
/readyDatabase and file-store readiness