Skip to content

Add fastapi-fastgen-starter to Boilerplate - #345

Open
YIbaikaishui wants to merge 1 commit into
mjhea0:mainfrom
YIbaikaishui:add-fastgen-starter-template
Open

YIbaikaishui wants to merge 1 commit into
mjhea0:mainfrom
YIbaikaishui:add-fastgen-starter-template

Conversation

@YIbaikaishui

Copy link
Copy Markdown

What

Adds fastapi-fastgen-starter to the Boilerplate section (appended at the end, per contributing.md).

Why it's awesome

  • Stays organized as it grows — src/ layout with one vertical-slice module per business domain (domain/ → application/ → infrastructure/ → api/), and an auto-maintained registry (src/modules/__init__.py) that routers auto-mount from, so adding a module never means hand-editing main.py
  • Async SQLAlchemy 2.0 done right — Mapped/mapped_column, AsyncAttrs, a single get_session dependency
  • Alembic from day one — schema lives in migrations, not create_all
  • A worked example — ships a filled-in CRUD module with endpoint tests, not just empty skeletons
  • Zero lock-in — plain FastAPI + SQLAlchemy; the template companion to fastgen-cli, a uvx-runnable module manager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant