uv/docs/guides/integration
Den Kasyanov 0ceefb3c88
Update FastAPI integration docs (#6833) (#6850)
## Summary

- Fixed the directory structure and commands for the second scenario
#6833
- Added a headline "Migrating an existing FastAPI project" because the
first part looks like a migration scenario, but didn't have its own
section before.
- Added explicit `--app` flags to commands to emphasize that the
commands create an Application project. Although maybe unnecessary
considering that `--app` is now default.
- Added instructions for testing that the dev server and Docker image
work correctly
- Took the liberty of adding a `project` at the root of all directory
structures and appropriate commands.
- With explicitly defined root directory it is easier to differentiate
between the `project` root directory and FastAPI's `app` directory.
- Without it it could be less obvious for developers less familiar with
FastAPI. Had a similar issue when started using Django several years
ago.
- If I left `app` in the command, then after copying the **app
directory** from https://github.com/astral-sh/uv-fastapi-example the
path would be `app/app/...`.
- Cleaned up glyphs in tree sctructures that were copied from FastAPI
docs.

## Caveats

- On project initialization `hello.py` is created. It is not reflected
in directory structure trees in this PR and may be slightly confusing
for developers less familiar with uv.
- I believe it will be soon addressed in #6750 and after that the docs
will reflect actual directory structure.
2024-08-30 10:00:26 -04:00
..
alternative-indexes.md Add a link to the multiple index docs in the alternative index guide (#6826) 2024-08-29 15:27:48 -05:00
dependency-bots.md
docker.md Enumerate available Docker tags (#6768) 2024-08-28 13:51:23 -05:00
fastapi.md Update FastAPI integration docs (#6833) (#6850) 2024-08-30 10:00:26 -04:00
github.md Bump to v0.4.0 (#6764) 2024-08-28 17:29:16 +00:00
index.md
pre-commit.md Bump to v0.4.0 (#6764) 2024-08-28 17:29:16 +00:00