# fastapi-user **Repository Path**: chen1404276788/fastapi-user ## Basic Information - **Project Name**: fastapi-user - **Description**: 用户系统 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-07-04 - **Last Updated**: 2025-07-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # fastapi-user ## 介绍 这是一个基于 FastAPI 构建的用户管理系统,支持 Token 认证机制。前端请求需要在 header 中携带 `X-Token`。 ## 软件架构 - 使用 FastAPI 作为 Web 框架 - 使用 SQLite 作为数据库存储用户信息 - 实现 Token 认证机制 ## 安装教程 1. 确保已安装 Python 和 pip 2. 安装项目依赖: ```bash pip install -r requirements.txt ``` 3. 初始化数据库并创建表结构(可参考 `create_tables.py`) ## 使用说明 1. 启动服务: ```bash uvicorn app.main:app --reload ``` 2. 访问 API 文档: - Swagger UI: http://localhost:8000/docs - ReDoc: http://localhost:8000/redoc 3. 创建用户表: ```bash python create_tables.py ``` ## 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request ## 特技 1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)