Skip to content

Commit d64803e

Browse files
Merge pull request #230 from Promptly-Technologies-LLC/auto-merge/main-to-stripe-20260714213411
Propagate main to stripe
2 parents 336f2f9 + 4d70df2 commit d64803e

5 files changed

Lines changed: 27 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Test
22

33
on:
44
push:
5-
branches: [main, stripe]
65
pull_request:
76
branches: [main, stripe]
87
workflow_dispatch:

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,25 @@ The template also includes full-featured secure auth with:
3434
- Password recovery flow
3535
- Role-based access control system
3636

37+
## Optional branches
38+
39+
Some capabilities are maintained on dedicated branches so `main` stays lean:
40+
41+
| Branch | Purpose |
42+
|--------|---------|
43+
| `main` | Core template (auth, orgs, RBAC) |
44+
| [`stripe`](https://github.com/Promptly-Technologies-LLC/fastapi-jinja2-postgres-webapp/tree/stripe) | Organization-scoped Stripe billing |
45+
| [`modal`](https://github.com/Promptly-Technologies-LLC/fastapi-jinja2-postgres-webapp/tree/modal) | Modal.com deployment artifacts |
46+
| [`hetzner`](https://github.com/Promptly-Technologies-LLC/fastapi-jinja2-postgres-webapp/tree/hetzner) | Hetzner Cloud deployment artifacts |
47+
48+
New SaaS forks can start from `stripe`, or merge it later:
49+
50+
```bash
51+
git remote add upstream https://github.com/Promptly-Technologies-LLC/fastapi-jinja2-postgres-webapp.git
52+
git fetch upstream stripe
53+
git merge upstream/stripe
54+
```
55+
3756
## Design Philosophy
3857

3958
The design philosophy of the template is to prefer low-level,

user_guide/04-customization.qmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ git fetch upstream stripe
4444
git merge upstream/stripe
4545
```
4646

47+
When merging, expect conflicts in shared core files such as `main.py`, `pyproject.toml`, `utils/core/db.py`, `routers/core/organization.py`, header/organization templates, `tests/conftest.py`, and `.env.example`. Resolve by keeping billing additions from `stripe` while preserving your fork-specific changes.
48+
4749
### Testing
4850

4951
The project uses Pytest for unit testing. It's highly recommended to write and run tests before committing code to ensure nothing is broken!

user_guide/05-deployment.qmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ There are *many* hosting options available for each of these services; this guid
1313

1414
::: {.callout-note}
1515
Deployment artifacts (Dockerfiles, deploy scripts, compose files, etc.) are kept on separate git branches — one per deployment target — to avoid cluttering the main branch. See the `modal` branch for Modal deployment files and the `hetzner` branch for Hetzner Cloud deployment files. The documentation below describes how to use them.
16+
17+
Optional organization-scoped Stripe billing (Checkout, Customer Portal, webhooks) lives on the [`stripe`](https://github.com/Promptly-Technologies-LLC/fastapi-jinja2-postgres-webapp/tree/stripe) branch — not on `main`. Deploy billing-enabled apps from `stripe` (or after merging it into your fork); see `user_guide/07-billing.qmd` on that branch for setup.
1618
:::
1719

1820
## Deploying and Configuring the FastAPI App

user_guide/06-contributing.qmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ To contribute code to the project:
4343
- Provide a clear description of the changes
4444
- Link to any related issues
4545

46+
### Optional branches
47+
48+
Core template changes on `main` propagate automatically to `modal`, `hetzner`, and `stripe` via CI. Pull requests to `main` that touch shared files (`main.py`, `pyproject.toml`, `utils/core/db.py`, `routers/core/organization.py`, templates, `tests/conftest.py`, `.env.example`) may need manual conflict resolution when those changes are merged into `stripe`. See the [customization guide](https://promptlytechnologies.com/fastapi-jinja2-postgres-webapp/user-guide/customization.html) for the `git merge upstream/stripe` recipe.
49+
4650
### Rendering the documentation
4751

4852
The documentation website is built with [Great Docs](https://posit-dev.github.io/great-docs/). If you make changes to the `.qmd` files in the `user_guide/` folder, you will need to rebuild the docs with Great Docs.

0 commit comments

Comments
 (0)