Skip to content

chdxia/lrtest.api

Repository files navigation

lrtest-api

fastapi tortoise-orm

基于FastAPI开发的一个测试工具(后端)

API文档传送门:https://lrtest.chdxia.com/api/v1/docs

项目演示传送门:https://lrtest.chdxia.com

Jenkins传送门:https://jenkins.chdxia.com

前端传送门:https://github.com/chdxia/lrtest-web

项目依赖

fastapi:Web框架

tortoise-orm:受 Django ORM启发的一个异步ORM(数据库对象关系映射器)

aiomysql:基于pymysql的一个异步MySQL驱动程序

uvicorn:ASGI 服务器

gunicorn:WSGI HTTP 服务器

loguru:让日志记录变得简单

pyyaml:与yaml文件的交互

passlib:用户密码加密

qiniu:七牛SDK,用于图片资源存储

*提示:请修改./app/lib/config.py中的配置信息

开发:

# 安装依赖
pipenv install

# 启动服务
pipenv run uvicorn app.main:app --reload --host 0.0.0.0 --port 8082

发布:

# 安装依赖
pipenv install

# 启动服务
pipenv run gunicorn app.main:app

About

Restful WebAPI Service by FastAPI + Tortoise-ORM + MySQL + Uvicorn/Gunicorn

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published