fastapi-cli icon indicating copy to clipboard operation
fastapi-cli copied to clipboard

Add command for initializing FastAPI projects with example code.

Open diicellman opened this issue 1 year ago • 3 comments

new command for cli 'init' permits to initialize a new FastAPI project with example code.

diicellman avatar Jul 01 '24 11:07 diicellman

Is this the best thing to put in fastapi-cli? You may want to consider using a cookiecutter template instead.

mattmess1221 avatar Jul 03 '24 13:07 mattmess1221

This pull request has a merge conflict that needs to be resolved.

github-actions[bot] avatar Sep 05 '25 08:09 github-actions[bot]

This implementation should be refactored to not include project structure and code of the app as text, but store code in separate files instead. This way it will be easier to maintain it.

But first, let's wait for Sebastian to approve the idea. In general you can use one of multiple FastAPI project templates. But it might be convenient for newcomers if we provide simple project structure example out of the box.

YuriiMotov avatar Sep 23 '25 20:09 YuriiMotov