tiangolo / full-stack-fastapi-template

Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.
MIT License
24.44k stars 4.12k forks source link

Use GitHub's built-in template repo system #1197

Open ebetancourt opened 1 month ago

ebetancourt commented 1 month ago

I love your project, but thought the process for using it as a template could be streamlined.

GitHub allows you to set a project up as a template with a single setting:

CleanShot 2024-05-08 at 13 16 43

With just that, you get a "use this template" button in the top right of your repo. you can see it in my fork here: https://github.com/ebetancourt/full-stack-fastapi-template

CleanShot 2024-05-08 at 13 17 42

CleanShot 2024-05-08 at 13 18 18

This also allows the creation of a private repo based on the template.

I also added a GitHub action that runs once a day and checks the original template, and if there are any changes, it creates a PR against the project with the updates to the template

CleanShot 2024-05-08 at 14 03 03

I know my screenshots don't quite fit your style (you don't have any call-outs and they are in dark mode, while yours are all in light mode) - if this is a feature you want to add, and you would like to merge my PR, I will happily update the images (and anything else!) to fit the needs of the project.

Oh, and of course, I would have to update the action to point to YOUR repo rather than my fork!