.NET React Templates
Development

Development recipes

These recipes are the shortest safe paths for extending Next SaaS while preserving typed contracts, organization isolation, entitlements, quota correctness, and static-export compatibility.

Choose a recipe

GoalGuide
Add a typed backend endpointAdd a ServiceStack API
Sell or restrict a capabilityAdd a feature gate
Measure and limit customer activityAdd a meter and quota
Run reliable work outside a requestAdd a background job
Change persistent product dataDatabase migrations
Build an authenticated product screenAdd a frontend page
Refresh the TypeScript clientGenerate typed DTOs
Prove behavior and prevent regressionsTesting
Work effectively with coding agentsAI-assisted development

Typical full-stack change

For a new quota-controlled product capability, use this order:

Repository Map and Development Landmarks

  1. define the request/response contract;
  2. register its feature and meter keys;
  3. add persistence and a migration if necessary;
  4. implement tenant-bound authorization and metering;
  5. regenerate TypeScript DTOs;
  6. add the static-compatible frontend page;
  7. test policy boundaries and UI behavior;
  8. run ./scripts/verify.sh.

Keep global product policy in JSON, plan and customer state in the RDBMS, and provider secrets in environment configuration.