# hello-fastapi **Repository Path**: billow_jiang/hello-fastapi ## Basic Information - **Project Name**: hello-fastapi - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-28 - **Last Updated**: 2025-08-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # hello_fastapi A simple app using FastAPI ### 依赖管理 - 更新pip ```shell python -m pip install --upgrade pip -i https://mirrors.aliyun.com/pypi/simple/ ``` - 安装pip依赖 ```shell pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ ``` pip install -U fastapi==0.116.1 -i https://mirrors.aliyun.com/pypi/simple/ ```shell pip install swagger-ui-bundle -i https://mirrors.aliyun.com/pypi/simple/ ``` pip install fastapi-cdn-host -i https://mirrors.aliyun.com/pypi/simple/ ### 实现的功能有 - [x] 使用 APIRouter 实现模块化开发 - [x] 集成 Swagger-UI https://zhuanlan.zhihu.com/p/7892681349 - [x] 集成 SQLModel ORM - [x] 集成 WebSocket pip install uvicorn[standard] -i https://mirrors.aliyun.com/pypi/simple/ - [x] 集成 SqlModel ORM - [x] Todo ### docker - 构建镜像 ```shell docker build -t hello_fastapi . ``` - 运行镜像 ```shell docker run -d -p 8000:8000 hello_fastapi ``` ### Windows运行环境 - 运维命令 ```shell tasklist /FI "IMAGENAME eq python.exe" ``` ```shell taskkill /F /IM python.exe ``` ```shell netstat -ano | findstr :8000 ``` ### 学习资料 - https://fastapi.tiangolo.com/zh/