uvicorn startup

This commit is contained in:
John Lancaster
2026-07-30 00:01:18 -05:00
parent efba051cb5
commit 34e6d693ab
4 changed files with 286 additions and 3 deletions
+18 -3
View File
@@ -1,12 +1,15 @@
---
name: nicegui
description: 'Reference hub for NiceGUI and FastAPI application structure, UI composition, styling, bindable state, interactions, troubleshooting, testing, and source documentation. Use when planning, implementing, reviewing, or debugging NiceGUI applications; load only the references relevant to the task.'
description: 'Reference hub for NiceGUI and FastAPI application structure, ASGI and Uvicorn startup, UI composition, styling, bindable state, interactions, troubleshooting, testing, and source documentation. Use when planning, implementing, reviewing, deploying, or debugging NiceGUI applications; load only the references relevant to the task.'
x-personal-mcp:
id: nicegui
version: 2.2.0
version: 2.3.0
tags:
- nicegui
- fastapi
- asgi
- uvicorn
- deployment
- ui
- architecture
- scaffolding
@@ -51,6 +54,17 @@ Load [application architecture](./references/architecture.md) for:
- optional persistence, LangGraph, or mounted documentation
- async responsiveness and baseline tests
### FastAPI And Uvicorn Startup
Load [FastAPI and Uvicorn startup](./references/fastapi-uvicorn-startup.md) for:
- choosing between `ui.run()` and `ui.run_with()`
- understanding the parent FastAPI app and NiceGUI's internal app
- composing ASGI lifespan and mounted routes
- serving an app instance or factory with Uvicorn
- exposing programmatic startup through `[project.scripts]`
- reload, worker, and process-local state constraints
### Components And Styling
Load [architecture and styling](./references/architecture-and-styling.md) for:
@@ -104,7 +118,8 @@ Load [source documentation](./references/source-documentation.md) when:
### New Application Or Architecture Review
1. Load [application architecture](./references/architecture.md).
2. Add [architecture and styling](./references/architecture-and-styling.md) only when page and component design is in scope.
2. Add [FastAPI and Uvicorn startup](./references/fastapi-uvicorn-startup.md) when FastAPI owns the application or startup must be exposed as a project command.
3. Add [architecture and styling](./references/architecture-and-styling.md) only when page and component design is in scope.
### Page Or Component Work