---
title: Deploy Open SaaS with AI on Blossom
url: "/deploy/open-saas/"
canonical_url: https://blossom88.com/deploy/open-saas/
markdown_url: https://blossom88.com/deploy/open-saas.md
summary: Start Wasp’s Open SaaS template with managed PostgreSQL, then verify a signup
  and save your first task.
categories:
- deployment
- typescript
- saas
stack:
- TypeScript
- Wasp
- React
- Node.js
- Prisma
- PostgreSQL
---

# Deploy Open SaaS with AI on Blossom

[Open SaaS](https://opensaas.sh/) is Wasp’s starter for a TypeScript
SaaS app. It includes email signup, a React landing page, and a
sample task list. Deploy it, verify an account, and save a task.

![Open the starter’s landing page.](/deploy/assets/images/open-saas/workshop-home.webp)

## Ask Your Agent

> **Ask your AI agent:** Deploy Open SaaS on Blossom with managed PostgreSQL and help me verify my first signup.
>
> Follow this guide: https://blossom88.com/deploy/open-saas/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and choose a Blossom Cloud Location when you log in. You can also use [Blossom BYOC (bring your own cloud)](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#blossom-byoc).

## Have Ready

- **Test email inbox** (Required): Use a private Mailpit inbox for a workshop or configure an SMTP provider for delivery.
- **Billing, AI, analytics and uploads** (Later): Configure the providers when you enable their features.

## How It Runs

| Part | Role | Where |
|---|---|---|
| React client | Serve the site and forward API requests | Public Service on App Capacity |
| Wasp API | Verify signups and save tasks | Private Service on App Capacity |
| PostgreSQL | Store users and tasks | Blossom Managed PostgreSQL |
| Mailpit | Capture verification messages for the workshop | Service behind Blossom Account access |

## Deploy Open SaaS

Add the Open SaaS build files below to your repository. They build Wasp’s
MIT-licensed starter into one image. Run the client and API as separate
Services and link managed PostgreSQL. Keep the workshop behind Blossom
Account access.

<details class="optional-reading" markdown="1">
<summary>Commands your agent runs</summary>

    blossom app:create --data app.yml
    blossom environment:create --data environment.yml
    blossom service:create --data bootstrap-web.yml
    blossom environment:deploy --id environment-100 --follow
    blossom database_instance:create --data postgres.yml
    blossom environment_link:create --data database-link.yml
    blossom environment:update --id environment-100 --data source-type.yml
    blossom git_repo:create --data source.yml
    blossom environment:build_config:update --id environment-100 --data dockerfile.yml
    blossom service:update --id service-web-100 --data web.yml
    blossom service:create --data api.yml
    blossom service:create --data mailpit.yml
    blossom env_var:push --environment environment-100 --file opensaas.env
    blossom environment:deploy_hooks:update --id environment-100 --data release.yml
    blossom environment:deploy --id environment-100 --follow

</details>

<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

- This recipe uses Wasp’s [Open SaaS 0.26 template release](https://github.com/wasp-lang/open-saas/releases/tag/wasp-v0.26-template).
  Put these files in the same directory in your repository, preserving
  the `migrations/` paths, and use that directory as the build context.
  - [Dockerfile](/deploy/recipes/open-saas/Dockerfile)
  - [Caddyfile](/deploy/recipes/open-saas/Caddyfile)
  - [migrations/migration_lock.toml](/deploy/recipes/open-saas/migrations/migration_lock.toml)
  - [migrations/20261126000000_initial/migration.sql](/deploy/recipes/open-saas/migrations/20261126000000_initial/migration.sql)
- If you need a generated HTTPS address, first deploy a temporary web
  Service on the same Environment. Use that address for the client build
  variable `REACT_APP_API_URL` and runtime `WASP_WEB_CLIENT_URL` and
  `WASP_SERVER_URL`.
- After switching the Environment to Git, check that it has a build
  destination. If `image_repo` is empty on Blossom’s hosted Platform,
  set it to `registry.blossom88.com/<account-id>/<app-id>/<environment-id>`
  with `blossom environment:update`.
- Connect PostgreSQL as `DATABASE_URL`. Run
  `npm --prefix .wasp/out/server run db-migrate-prod` in the Release
  Phase. Keep the signing secret `JWT_SECRET` stable.
- Run `caddy run --config /app/Caddyfile` on port 8080 and the
  private API on port 3001. Set `OPEN_SAAS_API_UPSTREAM` to the API
  Service’s private address and port. Caddy serves the client and
  forwards the API paths on the same HTTPS address.
- Use the template’s example values for unused integrations in the
  workshop. Add your provider settings before enabling those features.

</details>

## Confirm Your Signup

Create a test account and open the verification message in your inbox.
Follow its link and sign in.

> **Ask your AI agent:** Help me verify a test signup for Open SaaS.

> Follow this guide: https://blossom88.com/deploy/open-saas/



<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

Wasp’s production build uses SMTP in this recipe. For Mailpit, set
`SMTP_HOST` to its private Service address, use port 1025, and set
the test SMTP credentials in runtime variables. Keep the mailbox
behind Blossom Account access and use only a synthetic address.

</details>

## Save Your First Task

Open the demo task list. Add a task such as “Outline the workshop
launch checklist” and check it appears in the list.

> **Ask your AI agent:** Add a workshop launch task in the Open SaaS demo.

> Follow this guide: https://blossom88.com/deploy/open-saas/



## Keep It Running

Replace the API Container. Sign in from a new session and reopen the
task you just saved.

<details class="optional-reading" markdown="1">
<summary>Commands your agent runs</summary>

    blossom service:scale --id service-api-100 --desired-size 0 --follow
    blossom service:scale --id service-api-100 --desired-size 1 --follow

</details>

![Reopen the original task after replacing the API Container.](/deploy/assets/images/open-saas/saved-task.webp)

## What You Get

- A Wasp starter at one HTTPS address
- A signup confirmed from your test inbox
- A task saved to managed PostgreSQL
- The same task after an API Container replacement

Tested on Blossom: A fresh sign-in reopened the saved task after replacing the API Container.
