stack/apps
BilalG1 0335e04c52
seed script dummy project (#1018)
https://www.loom.com/share/b3216a8f83bb4260a3be4cfca4988cb4
<!--

Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md

-->


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added an opt-in sample-project population (toggle via environment) to
explore the app.
* Sample dataset expanded with teams, users, memberships, subscriptions,
transactions/purchases, payment setup, emails, and many richer demo
records.
* **Chores**
* Introduced an environment toggle to enable/disable the dummy sample
project.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Adds an optional dummy project seeding flow (toggled by
`STACK_SEED_ENABLE_DUMMY_PROJECT`) that populates teams, users,
memberships, payments config, transactions, and emails.
> 
> - **Backend Seed (`apps/backend/prisma/seed.ts`)**:
> - **Dummy Project**: Creates/updates `DUMMY_PROJECT_ID` with config
(email theme, OAuth providers, localhost, API key options) and sets
`stripeAccountId`.
> - **Sample Data**: Seeds teams, users, and team memberships via CRUD
handlers.
> - **Payments**: Applies payments override (catalogs, items, products
incl. `starter`, `growth`, `regression-addon`) and installs all apps.
> - **Transactions**: Seeds subscriptions, item quantity changes, and
one-time purchases with fixed IDs.
> - **Emails**: Seeds sent emails with sample senders, content, and
errors.
> - **Env (`apps/backend/.env.development`)**:
> - Adds toggle `STACK_SEED_ENABLE_DUMMY_PROJECT=true` to enable dummy
project seeding.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
98fa6559aa. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-11-19 09:08:10 -08:00
..
backend seed script dummy project (#1018) 2025-11-19 09:08:10 -08:00
dashboard Fix app icons on dashboard 2025-11-18 21:47:01 -08:00
dev-launchpad chore: update package versions 2025-11-17 15:52:01 -08:00
e2e Disallow invalid wildcard protocols 2025-11-18 17:19:00 -08:00
mock-oauth-server chore: update package versions 2025-11-17 15:52:01 -08:00
oauth-mock-server In-source unit tests (#429) 2025-02-14 11:47:52 -08:00