BASELibraryCatalogs

Build and test a SaaS prototype

A first SaaS prototype needs only one user workflow with an interface, data, and access rules. Add email, analytics, and background tasks when the workflow requires them. This approach helps avoid duplicate backends and distinguish free code from cloud quotas and operating costs.

Steps

  1. Build one user workflow

    Describe the inputs and action's result, then build the screen with coss ui. If you need your own Python backend with React, consider Full Stack FastAPI Template as the whole application's foundation. Do not run its authorization mechanisms alongside another platform without clear responsibility boundaries.

  2. Choose data storage and authorization

    Use Supabase for PostgreSQL/Auth/Storage or PocketBase for a compact self-contained prototype. If you already chose FastAPI Template, align its PostgreSQL and JWT with the architecture instead of adding a second authorization system. Set up record-owner access and test another user's attempt to read or change it.

  3. Test inputs and the browser workflow

    In the TypeScript part, define input with a Zod schema and test edge cases with Vitest. MSW helps reproduce an external API failure; Playwright tests registration and the main browser action. For Python, use your stack's checks. Keep a real integration test: mocks do not establish that the server works.

  4. Add transactional email As needed

    If the workflow needs sign-in confirmation or password recovery, configure Resend with a verified domain and DNS. Test delivery, sending errors, and repeated requests. You can defer this stage for a prototype without an email workflow; free quotas are not unlimited delivery.

  5. Move long operations out of the main request As needed

    Consider Trigger.dev for background TypeScript code or n8n for connecting services through a visual workflow. Add the required option after defining the operation, retries, and completion criteria. Check that a retry does not duplicate a charge, email, or data record.

  6. Add analytics when there is an actual need As needed

    Plausible can monitor visits and goals. Choose cloud or Community Edition and describe the actual data processing. Analytics are not required to test whether the prototype works; activation should follow the application's own rules.

  7. Prepare operations and recovery

    Check production configuration, secrets, migrations, permissions, and backup recovery for the chosen backend. Separate the local development build from the production server. Finish by retesting the main workflow in the prepared environment.

Conditions and limitations

  • Supabase Free and Resend Free have quotas; your own server and additional cloud resources cost separately.
  • Before version 1.0, PocketBase requires readiness to maintain changes and does not replace a distributed backend for a critical application.
  • n8n Community permits specified internal use cases; reselling access to customers needs a separate license assessment.
  • Trigger.dev self-hosting and cloud do not have full feature parity; credits, APIs, and infrastructure need separate consideration.
  • Plausible Community Edition requires your own server and differs from paid cloud hosting; free code does not include operations.

How to check the result

  • There is one user workflow you can test and one main approach to data and authorization.
  • Users cannot access others' records, and input and API errors can be reproduced.
  • Retrying a background operation creates no duplicates.
  • Email and quotas are checked if email is connected.
  • Backup recovery and production configuration are checked separately from local startup.

Other approaches

  • PocketBase

    A compact backend for a small prototype when its maturity limitations are acceptable.

  • Full Stack FastAPI Template

    Your own Python/React foundation instead of a platform with a ready-made backend.

How BASE selects and reviews information

Other kits · Entire library