# Computer hardware and software **Repository Path**: killex/computer-hardware-and-software ## Basic Information - **Project Name**: Computer hardware and software - **Description**: 计算机硬件和软件清单系统 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-01-07 - **Last Updated**: 2026-01-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # FastAPI 简单应用 这是一个使用 FastAPI 和 Jinja2 模板的简单应用示例,包含基础模板和导航栏。 ## 依赖 - Python 3.7+ - FastAPI - Uvicorn - Jinja2 ## 安装 1. 安装依赖: ```bash pip install -r requirements.txt ``` 2. 或者单独安装: ```bash pip install fastapi uvicorn jinja2 ``` ## 运行 ```bash python main.py ``` 或者使用 uvicorn: ```bash uvicorn main:app --reload ``` 应用将在 `http://127.0.0.1:8000` 上运行。 ## 项目结构 - `main.py`: FastAPI 应用主文件 - `templates/base.html`: 基础模板,包含导航栏 - `templates/index.html`: 首页模板,继承自 base.html - `requirements.txt`: 项目依赖