{"id":31279354,"url":"https://github.com/WebFlowPy/Dash-FastAPI-Admin","last_synced_at":"2025-09-24T01:10:54.413Z","repository":{"id":194439902,"uuid":"690644220","full_name":"WebFlowPy/Dash-FastAPI-Admin","owner":"WebFlowPy","description":"A general middle and backend management system developed purely in Python based on Dash+FastAPI.基于Dash+FastAPI纯Python开发的一个通用中后台管理系统。","archived":false,"fork":false,"pushed_at":"2025-08-08T08:57:27.000Z","size":10721,"stargazers_count":455,"open_issues_count":1,"forks_count":103,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-09-21T22:02:41.332Z","etag":null,"topics":["admin","ant-design","fastapi","plotly-dash","python","ruoyi"],"latest_commit_sha":null,"homepage":"https://dfadmin.insistence.tech/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WebFlowPy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-09-12T15:30:21.000Z","updated_at":"2025-09-21T06:46:00.000Z","dependencies_parsed_at":"2024-01-07T06:42:43.527Z","dependency_job_id":"647216f1-27a0-47f2-8ac2-5712eff3d7a1","html_url":"https://github.com/WebFlowPy/Dash-FastAPI-Admin","commit_stats":null,"previous_names":["insistence/dash-fastapi-admin","webflowpy/dash-fastapi-admin"],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/WebFlowPy/Dash-FastAPI-Admin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebFlowPy%2FDash-FastAPI-Admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebFlowPy%2FDash-FastAPI-Admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebFlowPy%2FDash-FastAPI-Admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebFlowPy%2FDash-FastAPI-Admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WebFlowPy","download_url":"https://codeload.github.com/WebFlowPy/Dash-FastAPI-Admin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebFlowPy%2FDash-FastAPI-Admin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276674502,"owners_count":25684076,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-23T02:00:09.130Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["admin","ant-design","fastapi","plotly-dash","python","ruoyi"],"created_at":"2025-09-24T01:03:15.837Z","updated_at":"2025-09-24T01:10:54.404Z","avatar_url":"https://github.com/WebFlowPy.png","language":"Python","readme":"\u003cp align=\"center\"\u003e\n\t\u003cimg alt=\"logo\" src=\"https://oscimg.oschina.net/oscnet/up-d3d0a9303e11d522a06cd263f3079027715.png\"\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\" style=\"margin: 30px 0 30px; font-weight: bold;\"\u003eDash-FastAPI-Admin v2.1.1\u003c/h1\u003e\n\u003ch4 align=\"center\"\u003e基于Dash+FastAPI前后端分离的纯Python快速开发框架\u003c/h4\u003e\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://gitee.com/insistence2022/dash-fastapi-admin/stargazers\"\u003e\u003cimg src=\"https://gitee.com/insistence2022/dash-fastapi-admin/badge/star.svg?theme=dark\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/insistence/Dash-FastAPI-Admin\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/insistence/Dash-FastAPI-Admin?style=social\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://gitee.com/insistence2022/dash-fastapi-admin\"\u003e\u003cimg src=\"https://img.shields.io/badge/DashFastAPIAdmin-v2.1.1-brightgreen.svg\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://gitee.com/insistence2022/dash-fastapi-admin/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/mashape/apistatus.svg\"\u003e\u003c/a\u003e\n    \u003cimg src=\"https://img.shields.io/badge/python-≥3.9-blue\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/MySQL-≥5.7-blue\"\u003e\n\u003c/p\u003e\n\n## 平台简介\n\nDash-FastAPI-Admin是一套全部开源的快速开发平台，毫无保留给个人及企业免费使用。\n\n* 前端采用Dash、feffery-antd-components、feffery-utils-components。\n* 后端采用FastAPI、sqlalchemy、MySQL（PostgreSQL）、Redis、OAuth2 \u0026 Jwt。\n* 权限认证使用OAuth2 \u0026 Jwt，支持多终端认证系统。\n* 支持加载动态权限菜单，多方式轻松权限控制。\n* Vue2版本：\n  - Gitte仓库地址：https://gitee.com/insistence2022/RuoYi-Vue-FastAPI\n  - GitHub仓库地址：https://github.com/insistence/RuoYi-Vue-FastAPI\n* Vue3版本：\n  - Gitte仓库地址：https://gitee.com/insistence2022/RuoYi-Vue3-FastAPI\n  - GitHub仓库地址：https://github.com/insistence/RuoYi-Vue3-FastAPI\n* 特别鸣谢：\u003cu\u003e[RuoYi-Vue](https://gitee.com/y_project/RuoYi-Vue)\u003c/u\u003e ，\u003cu\u003e[feffery-antd-components](https://github.com/CNFeffery/feffery-antd-components)\u003c/u\u003e，\u003cu\u003e[feffery-utils-components](https://github.com/CNFeffery/feffery-utils-components)\u003c/u\u003e。\n\n## 内置功能\n\n1.  用户管理：用户是系统操作者，该功能主要完成系统用户配置。\n2.  角色管理：角色菜单权限分配、设置角色按机构进行数据范围权限划分。\n3.  菜单管理：配置系统菜单，操作权限，按钮权限标识等。\n4.  部门管理：配置系统组织机构（公司、部门、小组）。\n5.  岗位管理：配置系统用户所属担任职务。\n6.  字典管理：对系统中经常使用的一些较为固定的数据进行维护。\n7.  参数管理：对系统动态配置常用参数。\n8.  通知公告：系统通知公告信息发布维护。\n9.  操作日志：系统正常操作日志记录和查询；系统异常信息日志记录和查询。\n10. 登录日志：系统登录日志记录查询包含登录异常。\n11. 在线用户：当前系统中活跃用户状态监控。\n12. 定时任务：在线（添加、修改、删除）任务调度包含执行结果日志。\n13. 服务监控：监视当前系统CPU、内存、磁盘、堆栈等相关信息。\n14. 缓存监控：对系统的缓存信息查询，命令统计等。\n15. 系统接口：根据业务代码自动生成相关的api接口文档。\n\n## 演示图\n\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\u003cimg src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/%E7%99%BB%E5%BD%95.png\"/\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003cimg src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/%E5%BF%98%E8%AE%B0%E5%AF%86%E7%A0%81.png\"/\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\u003cimg src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/%E7%94%A8%E6%88%B7%E7%AE%A1%E7%90%86.png\"/\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003cimg src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/%E8%A7%92%E8%89%B2%E7%AE%A1%E7%90%86.png\"/\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\u003cimg src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/%E8%8F%9C%E5%8D%95%E7%AE%A1%E7%90%86.png\"/\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003cimg src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/%E9%83%A8%E9%97%A8%E7%AE%A1%E7%90%86.png\"/\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\u003cimg src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/%E5%B2%97%E4%BD%8D%E7%AE%A1%E7%90%86.png\"/\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003cimg src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/%E5%AD%97%E5%85%B8%E7%AE%A1%E7%90%86.png\"/\u003e\u003c/td\u003e\n    \u003c/tr\u003e\t \n    \u003ctr\u003e\n        \u003ctd\u003e\u003cimg src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/%E5%8F%82%E6%95%B0%E8%AE%BE%E7%BD%AE.png\"/\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003cimg src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/%E9%80%9A%E7%9F%A5%E5%85%AC%E5%91%8A.png\"/\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\u003cimg src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/%E6%93%8D%E4%BD%9C%E6%97%A5%E5%BF%97.png\"/\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003cimg src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/%E7%99%BB%E5%BD%95%E6%97%A5%E5%BF%97.png\"/\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\u003cimg src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/%E5%9C%A8%E7%BA%BF%E7%94%A8%E6%88%B7.png\"/\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003cimg src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/%E5%AE%9A%E6%97%B6%E4%BB%BB%E5%8A%A1.png\"/\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\u003cimg src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/%E6%9C%8D%E5%8A%A1%E7%9B%91%E6%8E%A7.png\"/\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003cimg src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/%E7%BC%93%E5%AD%98%E7%9B%91%E6%8E%A7.png\"/\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\u003cimg src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/%E7%BC%93%E5%AD%98%E5%88%97%E8%A1%A8.png\"\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003cimg src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/%E7%B3%BB%E7%BB%9F%E6%8E%A5%E5%8F%A3.png\"\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\u003cimg src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/%E9%A6%96%E9%A1%B5.png\"\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003cimg src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/%E4%B8%AA%E4%BA%BA%E8%B5%84%E6%96%99.png\"/\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n## 在线体验\n- *账号：admin*\n- *密码：admin123*\n- 演示地址：\u003ca href=\"https://dfadmin.insistence.tech\"\u003edfadmin管理系统\u003ca\u003e\n\n## 项目开发及发布\n\n```bash\n# 克隆项目\ngit clone https://gitee.com/insistence2022/dash-fastapi-admin.git\n\n# 进入项目根目录\ncd dash-fastapi-admin\n\n# 如果使用的是MySQL数据库，请执行以下命令安装项目依赖环境\npip3 install -r requirements.txt\n# 如果使用的是PostgreSQL数据库，请执行以下命令安装项目依赖环境\npip3 install -r requirements-pg.txt\n```\n\n### 开发\n\n#### 前端\n```bash\n# 进入前端目录\ncd dash-fastapi-frontend\n\n# 配置应用信息\n在.env.dev文件中配置应用开发模式的相关信息\n\n# 运行前端\npython3 app.py --env=dev\n```\n\n#### 后端\n```bash\n# 进入后端目录\ncd dash-fastapi-backend\n\n# 配置环境\n1.在.env.dev文件中配置开发模式的数据库环境\n2.在.env.dev文件中配置开发模式的redis环境\n\n# 运行sql文件\n1.新建数据库dash-fastapi(默认，可修改)\n2.如果使用的是MySQL数据库，使用命令或数据库连接工具运行sql文件夹下的dash-fastapi.sql；如果使用的是PostgreSQL数据库，使用命令或数据库连接工具运行sql文件夹下的dash-fastapi-pg.sql\n\n# 运行后端\npython3 app.py --env=dev\n```\n\n### 发布\n\n本应用发布建议使用nginx部署，nginx代理配置参考如下：\n\n```bash\nserver {\n    location / {\n        proxy_set_header Host $http_host;\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header REMOTE-HOST $remote_addr;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        proxy_pass http://127.0.0.1:8088/;\n    }\n\n    location /prod-api {\n        proxy_set_header Host $http_host;\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header REMOTE-HOST $remote_addr;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        proxy_pass http://127.0.0.1:9099/;\n        rewrite ^/prod-api/(.*)$ /$1 break;\n    }\n\n    error_page   500 502 503 504  /50x.html;\n    location = /50x.html {\n        root   html;\n    }\n}\n```\n\n#### 前端\n```bash\n# 进入前端目录\ncd dash-fastapi-frontend\n\n# 配置应用信息\n在.env.prod文件中配置应用发布的相关信息，注意：APP_BASE_URL需要配置为nginx代理的地址，例如上面的nginx代理监听的是8000端口，则APP_BASE_URL需要配置为http://127.0.0.1:8000\n\n# 运行前端\npython3 wsgi.py --env=prod\n```\n\n#### 后端\n```bash\n# 进入后端目录\ncd dash-fastapi-backend\n\n# 配置环境\n1.在.env.prod文件中配置生产模式的数据库环境\n2.在.env.prod文件中配置生产模式的redis环境\n\n# 运行sql文件\n1.新建数据库dash-fastapi(默认，可修改)\n2.如果使用的是MySQL数据库，使用命令或数据库连接工具运行sql文件夹下的dash-fastapi.sql；如果使用的是PostgreSQL数据库，使用命令或数据库连接工具运行sql文件夹下的dash-fastapi-pg.sql\n\n# 运行后端\npython3 app.py --env=prod\n```\n\n### 访问\n```bash\n# 默认账号密码\n账号：admin\n密码：admin123\n\n# 浏览器访问\n地址：http://127.0.0.1:8088\n```\n\n## 交流与赞助\n如果有对本项目及FastAPI感兴趣的朋友，欢迎加入知识星球一起交流学习，让我们一起变得更强。如果你觉得这个项目帮助到了你，你可以请作者喝杯咖啡表示鼓励☕。扫描下面微信二维码添加微信备注DF-Admin即可进群，也欢迎大家加入dash大神费弗里的知识星球学习更多dash开发知识。\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003ctd style=\"width: 50%\"\u003e\u003cimg alt=\"zanzhu_wx\" src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/zanzhu_wx.jpg\"\u003e\u003c/td\u003e\n        \u003ctd style=\"width: 50%\"\u003e\u003cimg alt=\"zanzhu_zfb\" src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/zanzhu_zfb.jpg\"\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd style=\"width: 50%\"\u003e\u003cimg alt=\"zsxq\" src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/zsxq.jpg\"\u003e\u003c/td\u003e\n        \u003ctd style=\"width: 50%\"\u003e\u003cimg alt=\"dashzsxq\" src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/dashzsxq.jpg\"\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd style=\"width: 50%\"\u003e\u003cimg alt=\"wxcode\" src=\"https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/wxcode.jpg\"\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWebFlowPy%2FDash-FastAPI-Admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWebFlowPy%2FDash-FastAPI-Admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWebFlowPy%2FDash-FastAPI-Admin/lists"}