{"repo":"heyfavour/vue-element-admin-fastapi","free":true,"listed":false,"github":"https://github.com/heyfavour/vue-element-admin-fastapi","clone":"git clone https://github.com/heyfavour/vue-element-admin-fastapi.git","description":"vue-element-admin-fastapi","language":"Vue","stars":245,"topics":["fastapi","python-socketio","celery","vue","vue-element-admin","socket-io"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"vue-element-admin-fastapi vue-element-admin-fastapi frontend:vue-element-admin backend:fastapi and Full Stack FastAPI and PostgreSQL socket.io frontend:socket.io-client backend:python-socketio 前后端版本兼容请去官网检查，我使用的已经是最新的版本 前端：socket.io-client version 3.X 后端：python-socketio version 5.X celery celery-redis start celery:sh backend\\app\\worker-start.sh middleware EXCEL敏捷开发 axios发送get请求携带token,通过访问header['content-disposition']获取文件名(需要后端设置Access-Control-Expose-Headers) frontend:frontend\\vue-element-admin-fastapi\\frontend\\src\\utils\\ruoyi.js function download backend:backend\\app\\app\\api\\api v1\\report\\\\ \\ init\\ \\ .py DEMO:服务器到期了,暂时不续 开发规则整理： 1.模块化 2.router.include router下对根路由的RESTFUL请求需要结尾加\"/\",这个需要前端配合，其他都不需要加\"/\" 如何快速本地启动 python packages ip及数据库连接 数据准备 vue-element-admin-fastapi\\backend\\app\\prestart.sh 开发环境启动 联系方式: QQ：619511821 其他 日志统计 私下用两台服务器搭了hadoop+hive+spark。log存到了hive中并用spark统计了访问频率，使用airflow进行任务调度 但是考虑到项目简洁纯粹,所以并没有提交。 把结果放到了生产，给大家看看结果，尤其是异常API访问，看看经常被扫描的API有哪些 TODO 计划今年升级到sqlalchemy1.4 待框架解决问题 中间件日志记录参数问题 uvicorn - app(revice,send) - receive = queue.get()- api(revice)- send 以上是请求流程，如果在中间件中使用request.body() or reqeust.receive 就会导致queue中的参数被消耗掉,导致中间件的call next block 有人采用重写reqeust.receive的办法，但是这种办法会导致streambody or 巨大的body无法获取的问题(框架通过more body = True 多次receive，重写后循环获取无法停止)。 fastapi作者尝试在apirouter中记录参数日志。但是个人觉得这种方法很不python，所以暂不采用。","default_branch":null,"files":null,"tree":[],"storefront":"/r/heyfavour","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/heyfavour/vue-element-admin-fastapi/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}