Enhancement: Implement create-next-app Style Interactive Scaffolding for fastapi-new #50
Unanswered
NafeesMadni
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Description
Currently,
fastapi-newcreates a very minimal project. While this is great for simplicity, developers building full-stack applications often spend significant time manually adding repetitive boilerplate for frontend (Tailwind CSS) and database (SQLModel) integration.Minimal Example of the Proposed Use Case
Here is the "Expected vs. Current" workflow:
Current Behavior:
uvx fastapi-new my-app.main.py.uv add sqlmodel jinja2, create /templates, and configure the app.Expected/Proposed Behavior:
Run
uvx fastapi-new my-app.Interactive Prompt appears:
> Include Database? (None / SQLite / PostgreSQL)> Include Tailwind CSS? (y/N)> Initialize with .env and Pydantic-Settings? (y/N)> Include a basic Pytest suite? (y/N)Project is generated with the selected dependencies already in
pyproject.tomland a basicdatabase.pyorstatic/folder structure ready to go.What you are doing, what you expect to happen, and what is currently happening:
create-next-app.Contribution & Discussion
I would like to discuss further the design of these Interactive Prompts and the best way to handle the conditional template generation. As a Python Backend Developer and frequent FastAPI user, I have already forked the repository. I would love to contribute to the implementation myself through a Pull Request once we agree on the direction.
As this would be my first contribution to a FastAPI project, I have already been studying the
src/fastapi_newsource code and the project's use of Typer and uv. I am eager to align my implementation with your existing coding standards and would really appreciate any guidance you can give during the review process.Operating System
Linux, Windows, macOS
Operating System Details
No response
Version
0.0.5
Python Version
3.13.12
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions