|
1 | | -# RuoYi-Vue-FastAPI |
| 1 | +<p align="center"> |
| 2 | + <img alt="logo" src="https://oscimg.oschina.net/oscnet/up-d3d0a9303e11d522a06cd263f3079027715.png"> |
| 3 | +</p> |
| 4 | +<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">RuoYi-Vue-FastAPI v1.0.0</h1> |
| 5 | +<h4 align="center">基于RuoYi-Vue+FastAPI前后端分离的快速开发框架</h4> |
| 6 | +<p align="center"> |
| 7 | + <a href="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/stargazers"><img src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/badge/star.svg?theme=dark"></a> |
| 8 | + <a href="https://github.com/insistence/RuoYi-Vue-FastAPI"><img src="https://img.shields.io/github/stars/insistence/RuoYi-Vue-FastAPI?style=social"></a> |
| 9 | + <a href="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI"><img src="https://img.shields.io/badge/RuoYiVueFastAPI-v1.0.0-brightgreen.svg"></a> |
| 10 | + <a href="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/blob/master/LICENSE"><img src="https://img.shields.io/github/license/mashape/apistatus.svg"></a> |
| 11 | + <img src="https://img.shields.io/badge/python-≥3.8-blue"> |
| 12 | + <img src="https://img.shields.io/badge/MySQL-≥5.7-blue"> |
| 13 | +</p> |
2 | 14 |
|
3 | | -#### 介绍 |
4 | | -基于ruoyi-ui和FastAPI开发的一个通用中后台管理框架 |
| 15 | +## 平台简介 |
5 | 16 |
|
6 | | -#### 软件架构 |
7 | | -软件架构说明 |
| 17 | +RuoYi-Vue-FastAPI是一套全部开源的快速开发平台,毫无保留给个人及企业免费使用。 |
8 | 18 |
|
| 19 | +* 前端采用Vue、Element UI,基于<u>[RuoYi-Vue](https://gitee.com/y_project/RuoYi-Vue)</u>前端项目修改。 |
| 20 | +* 后端采用FastAPI、sqlalchemy、MySQL、Redis、OAuth2 & Jwt。 |
| 21 | +* 权限认证使用OAuth2 & Jwt,支持多终端认证系统。 |
| 22 | +* 支持加载动态权限菜单,多方式轻松权限控制。 |
| 23 | +* Vue3版本: |
| 24 | + - Gitte仓库地址:https://gitee.com/insistence2022/RuoYi-Vue3-FastAPI。 |
| 25 | + - GitHub仓库地址:https://github.com/insistence/RuoYi-Vue3-FastAPI。 |
| 26 | +* 纯Python版本: |
| 27 | + - Gitte仓库地址:https://gitee.com/insistence2022/dash-fastapi-admin。 |
| 28 | + - GitHub仓库地址:https://github.com/insistence/Dash-FastAPI-Admin。 |
| 29 | +* 特别鸣谢:<u>[RuoYi-Vue](https://gitee.com/y_project/RuoYi-Vue)</u>。 |
9 | 30 |
|
10 | | -#### 安装教程 |
| 31 | +## 内置功能 |
11 | 32 |
|
12 | | -1. xxxx |
13 | | -2. xxxx |
14 | | -3. xxxx |
| 33 | +1. 用户管理:用户是系统操作者,该功能主要完成系统用户配置。 |
| 34 | +2. 角色管理:角色菜单权限分配、设置角色按机构进行数据范围权限划分。 |
| 35 | +3. 菜单管理:配置系统菜单,操作权限,按钮权限标识等。 |
| 36 | +4. 部门管理:配置系统组织机构(公司、部门、小组)。 |
| 37 | +5. 岗位管理:配置系统用户所属担任职务。 |
| 38 | +6. 字典管理:对系统中经常使用的一些较为固定的数据进行维护。 |
| 39 | +7. 参数管理:对系统动态配置常用参数。 |
| 40 | +8. 通知公告:系统通知公告信息发布维护。 |
| 41 | +9. 操作日志:系统正常操作日志记录和查询;系统异常信息日志记录和查询。 |
| 42 | +10. 登录日志:系统登录日志记录查询包含登录异常。 |
| 43 | +11. 在线用户:当前系统中活跃用户状态监控。 |
| 44 | +12. 定时任务:在线(添加、修改、删除)任务调度包含执行结果日志。 |
| 45 | +13. 服务监控:监视当前系统CPU、内存、磁盘、堆栈等相关信息。 |
| 46 | +14. 缓存监控:对系统的缓存信息查询,命令统计等。 |
| 47 | +15. 在线构建器:拖动表单元素生成相应的HTML代码。 |
| 48 | +16. 系统接口:根据业务代码自动生成相关的api接口文档。 |
15 | 49 |
|
16 | | -#### 使用说明 |
| 50 | +## 演示图 |
17 | 51 |
|
18 | | -1. xxxx |
19 | | -2. xxxx |
20 | | -3. xxxx |
| 52 | +<table> |
| 53 | + <tr> |
| 54 | + <td><img src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/raw/master/demo-pictures/login.png"/></td> |
| 55 | + <td><img src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/raw/master/demo-pictures/dashboard.png"/></td> |
| 56 | + </tr> |
| 57 | + <tr> |
| 58 | + <td><img src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/raw/master/demo-pictures/user.png"/></td> |
| 59 | + <td><img src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/raw/master/demo-pictures/role.png"/></td> |
| 60 | + </tr> |
| 61 | + <tr> |
| 62 | + <td><img src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/raw/master/demo-pictures/menu.png"/></td> |
| 63 | + <td><img src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/raw/master/demo-pictures/dept.png"/></td> |
| 64 | + </tr> |
| 65 | + <tr> |
| 66 | + <td><img src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/raw/master/demo-pictures/post.png"/></td> |
| 67 | + <td><img src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/raw/master/demo-pictures/dict.png"/></td> |
| 68 | + </tr> |
| 69 | + <tr> |
| 70 | + <td><img src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/raw/master/demo-pictures/config.png"/></td> |
| 71 | + <td><img src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/raw/master/demo-pictures/notice.png"/></td> |
| 72 | + </tr> |
| 73 | + <tr> |
| 74 | + <td><img src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/raw/master/demo-pictures/operLog.png"/></td> |
| 75 | + <td><img src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/raw/master/demo-pictures/loginLog.png"/></td> |
| 76 | + </tr> |
| 77 | + <tr> |
| 78 | + <td><img src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/raw/master/demo-pictures/online.png"/></td> |
| 79 | + <td><img src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/raw/master/demo-pictures/job.png"/></td> |
| 80 | + </tr> |
| 81 | + <tr> |
| 82 | + <td><img src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/raw/master/demo-pictures/server.png"/></td> |
| 83 | + <td><img src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/raw/master/demo-pictures/cache.png"/></td> |
| 84 | + </tr> |
| 85 | + <tr> |
| 86 | + <td><img src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/raw/master/demo-pictures/cacheList.png"></td> |
| 87 | + <td><img src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/raw/master/demo-pictures/form.png"></td> |
| 88 | + </tr> |
| 89 | + <tr> |
| 90 | + <td><img src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/raw/master/demo-pictures/api.png"></td> |
| 91 | + <td><img src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/raw/master/demo-pictures/profile.png"/></td> |
| 92 | + </tr> |
| 93 | +</table> |
21 | 94 |
|
22 | | -#### 参与贡献 |
| 95 | +## 在线体验 |
| 96 | +- *账号:admin* |
| 97 | +- *密码:admin123* |
| 98 | +- 演示地址:<a href="https://vfadmin.insistence.tech">vfadmin管理系统<a> |
23 | 99 |
|
24 | | -1. Fork 本仓库 |
25 | | -2. 新建 Feat_xxx 分支 |
26 | | -3. 提交代码 |
27 | | -4. 新建 Pull Request |
| 100 | +## 项目开发及发布相关 |
28 | 101 |
|
| 102 | +### 开发 |
29 | 103 |
|
30 | | -#### 特技 |
| 104 | +```bash |
| 105 | +# 克隆项目 |
| 106 | +git clone https://gitee.com/insistence2022/RuoYi-Vue-FastAPI.git |
31 | 107 |
|
32 | | -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md |
33 | | -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) |
34 | | -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 |
35 | | -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 |
36 | | -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) |
37 | | -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) |
| 108 | +# 进入项目根目录 |
| 109 | +cd RuoYi-Vue-FastAPI |
| 110 | +``` |
| 111 | + |
| 112 | +#### 前端 |
| 113 | +```bash |
| 114 | +# 进入前端目录 |
| 115 | +cd ruoyi-fastapi-frontend |
| 116 | + |
| 117 | +# 安装依赖 |
| 118 | +npm install |
| 119 | + |
| 120 | +# 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题 |
| 121 | +npm install --registry=https://registry.npmmirror.com |
| 122 | + |
| 123 | +# 启动服务 |
| 124 | +npm run dev |
| 125 | +``` |
| 126 | + |
| 127 | +#### 后端 |
| 128 | +```bash |
| 129 | +# 进入后端目录 |
| 130 | +cd ruoyi-fastapi-backend |
| 131 | + |
| 132 | +# 安装项目依赖环境 |
| 133 | +pip3 install -r requirements.txt |
| 134 | + |
| 135 | +# 配置环境 |
| 136 | +在.env.dev文件中配置开发环境的数据库和redis |
| 137 | + |
| 138 | +# 运行sql文件 |
| 139 | +1.新建数据库ruoyi-fastapi(默认,可修改) |
| 140 | +2.使用命令或数据库连接工具运行sql文件夹下的ruoyi-fastapi.sql |
| 141 | + |
| 142 | +# 运行后端 |
| 143 | +python3 app.py --env=dev |
| 144 | +``` |
| 145 | + |
| 146 | +#### 访问 |
| 147 | +```bash |
| 148 | +# 默认账号密码 |
| 149 | +账号:admin |
| 150 | +密码:admin123 |
| 151 | + |
| 152 | +# 浏览器访问 |
| 153 | +地址:http://localhost:80 |
| 154 | +``` |
| 155 | + |
| 156 | +### 发布 |
| 157 | + |
| 158 | +#### 前端 |
| 159 | +```bash |
| 160 | +# 构建测试环境 |
| 161 | +npm run build:stage |
| 162 | + |
| 163 | +# 构建生产环境 |
| 164 | +npm run build:prod |
| 165 | +``` |
| 166 | + |
| 167 | +#### 后端 |
| 168 | +```bash |
| 169 | +# 配置环境 |
| 170 | +在.env.prod文件中配置生产环境的数据库和redis |
| 171 | + |
| 172 | +# 运行后端 |
| 173 | +python3 app.py --env=prod |
| 174 | +``` |
| 175 | + |
| 176 | +## 交流与赞助 |
| 177 | +如果有对本项目及FastAPI感兴趣的朋友,欢迎加入知识星球一起交流学习,让我们一起变得更强。如果你觉得这个项目帮助到了你,你可以请作者喝杯咖啡表示鼓励☕。扫描下面微信二维码添加微信备注VF-Admin即可进群。 |
| 178 | +<table> |
| 179 | + <tr> |
| 180 | + <td><img alt="zsxq" src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/raw/master/demo-pictures/zsxq.jpg"></td> |
| 181 | + <td><img alt="zanzhu" src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/raw/master/demo-pictures/zanzhu.jpg"></td> |
| 182 | + </tr> |
| 183 | + <tr> |
| 184 | + <td><img alt="wxcode" src="https://gitee.com/insistence2022/RuoYi-Vue-FastAPI/raw/master/demo-pictures/wxcode.jpg"></td> |
| 185 | + </tr> |
| 186 | +</table> |
0 commit comments