Replace startupbox in code box with an actual screenshot.

This commit is contained in:
2026-09-14 03:38:36 +00:00
parent 5ab12187bd
commit 42adf6120d
2 changed files with 3 additions and 8 deletions
+2
View File
@@ -129,3 +129,5 @@ The installed application instead depends on the lightweight [fastapi_vue](https
This keeps the development tooling where it belongs while leaving the distributed application as a normal, self-contained Python package.
️ The version numbering between the runtime and setup packages is synchronized, and the setup script always bumps the version in `pyproject.toml` to ensure compatible updates.
<img src="https://raw.githubusercontent.com/LeoVasanko/fastapi-vue-setup/main/docs/my-app.webp" alt="My App startup box and log items" width="500">
+1 -8
View File
@@ -73,14 +73,7 @@ A single `reload` argument replaces Uvicorn's separate reload arguments and may
A startup box with the app name, version and connect URL is printed before serving. Pass a `startup_box` template (`{name}`, `{version}`, `{listen}`, `{url}`, ...) to customize it, None to disable, or use `server.print_startup_box` on its own.
Printed by `server.run("my_app.app:app", listen=["localhost:3100"])`:
```
╭──────────────────────────────────────────╮
│ My App 0.1.0 @ 127.0.0.1:3100 [::1]:3100 │
│ http://localhost:3100 │
╰──────────────────────────────────────────╯
```
<img src="https://raw.githubusercontent.com/LeoVasanko/fastapi-vue-setup/main/docs/my-app.webp" alt="My App startup box and log items" width="500">
Logging is integrated as well: removes noisy uvicorn logging, replacing it with prettified log formatting, a colored access log and tracebacks rendered by [tracerite](https://pypi.org/project/tracerite/). Note that HTTP responses also include tracerite formatting when `FastAPI(debug=True)` is used.