# FastAPI-Base **Repository Path**: zhangersi/fast-api-base ## Basic Information - **Project Name**: FastAPI-Base - **Description**: 这是一个Python FastAPI项目模板工程,包含DB、Redis、MongoDB、JSON等工具和基础服务类。 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 33 - **Created**: 2023-05-24 - **Last Updated**: 2023-06-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 这是一个 FastAPI模板工程。 ### 技术栈: Python 3.8 - FastAPI - SQLAlchemy - uvicorn - PyMySQL - REDIS - PyMongo ## 开发运行 ```bash # 安装依赖环境: pip install -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt # 开发运行 python manage.py ``` ### 接口风格 | 请求方法 | 路径 | 说明 | | `POST` | /v1/category | 创建一个类别 | | `DELETE` | /v1/category/{id} | 删除一个类别 | | `PUT` | /v1/category/{id} | 修改一个类别 | | `GET` | /v1/category/{id} | 获取一个类别 | | `GET` | /v1/category/list | 获取类别列表 | ## 接口实例 ![avatar](static/demo_api_list.jpg) ## 快速开始 - 1、安装依赖: pip3 install -r requirements.txt - 2、修改数据库配置: config