# hello-fastapi **Repository Path**: mars-note/hello-fastapi ## Basic Information - **Project Name**: hello-fastapi - **Description**: fastapi 学习笔记 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-10-15 - **Last Updated**: 2025-12-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 1. 简介 这是一个记录了我学习 fastapi 框架的项目。 ## 1.1 创建项目 使用 uv 创建 fastapi 项目 ```shell uv init hello-fastapi uv add fastapi --extra standard ``` ## 1.2 启动项目 ```shell uvicorn main:app --reload ``` ## 1.3 项目使用 ### 1.3.1 安装依赖 在项目的根目录,执行 `uv sync` 命令,可以安装项目所需的依赖包。 ### 1.3.2 激活虚拟环境 #### **Linux/macOS** ``` source .venv/bin/activate ``` #### **Windows (PowerShell)** ```powershell .\.venv\Scripts\activate ```