1
1
<p align =" center " >
2
2
<img alt="logo" src="https://oscimg.oschina.net/oscnet/up-d3d0a9303e11d522a06cd263f3079027715.png">
3
3
</p >
4
- <h1 align =" center " style =" margin : 30px 0 30px ; font-weight : bold ;" >Dash-FastAPI-Admin v2.0.1 </h1 >
4
+ <h1 align =" center " style =" margin : 30px 0 30px ; font-weight : bold ;" >Dash-FastAPI-Admin v2.1.0 </h1 >
5
5
<h4 align =" center " >基于Dash+FastAPI前后端分离的纯Python快速开发框架</h4 >
6
6
<p align =" center " >
7
7
<a href="https://gitee.com/insistence2022/dash-fastapi-admin/stargazers"><img src="https://gitee.com/insistence2022/dash-fastapi-admin/badge/star.svg?theme=dark"></a>
8
8
<a href="https://github.com/insistence/Dash-FastAPI-Admin"><img src="https://img.shields.io/github/stars/insistence/Dash-FastAPI-Admin?style=social"></a>
9
- <a href="https://gitee.com/insistence2022/dash-fastapi-admin"><img src="https://img.shields.io/badge/DashFastAPIAdmin-v2.0.1 -brightgreen.svg"></a>
9
+ <a href="https://gitee.com/insistence2022/dash-fastapi-admin"><img src="https://img.shields.io/badge/DashFastAPIAdmin-v2.1.0 -brightgreen.svg"></a>
10
10
<a href="https://gitee.com/insistence2022/dash-fastapi-admin/blob/master/LICENSE"><img src="https://img.shields.io/github/license/mashape/apistatus.svg"></a>
11
11
<img src="https://img.shields.io/badge/python-≥3.9-blue">
12
12
<img src="https://img.shields.io/badge/MySQL-≥5.7-blue">
17
17
Dash-FastAPI-Admin是一套全部开源的快速开发平台,毫无保留给个人及企业免费使用。
18
18
19
19
* 前端采用Dash、feffery-antd-components、feffery-utils-components。
20
- * 后端采用FastAPI、sqlalchemy、MySQL、Redis、OAuth2 & Jwt。
20
+ * 后端采用FastAPI、sqlalchemy、MySQL(PostgreSQL) 、Redis、OAuth2 & Jwt。
21
21
* 权限认证使用OAuth2 & Jwt,支持多终端认证系统。
22
22
* 支持加载动态权限菜单,多方式轻松权限控制。
23
23
* Vue2版本:
@@ -105,8 +105,10 @@ git clone https://gitee.com/insistence2022/dash-fastapi-admin.git
105
105
# 进入项目根目录
106
106
cd dash-fastapi-admin
107
107
108
- # 安装项目依赖环境
108
+ # 如果使用的是MySQL数据库,请执行以下命令安装项目依赖环境
109
109
pip3 install -r requirements.txt
110
+ # 如果使用的是PostgreSQL数据库,请执行以下命令安装项目依赖环境
111
+ pip3 install -r requirements-pg.txt
110
112
```
111
113
112
114
### 开发
@@ -134,7 +136,7 @@ cd dash-fastapi-backend
134
136
135
137
# 运行sql文件
136
138
1.新建数据库dash-fastapi(默认,可修改)
137
- 2.使用命令或数据库连接工具运行sql文件夹下的dash-fastapi.sql
139
+ 2.如果使用的是MySQL数据库, 使用命令或数据库连接工具运行sql文件夹下的dash-fastapi.sql;如果使用的是PostgreSQL数据库,使用命令或数据库连接工具运行sql文件夹下的dash-fastapi-pg .sql
138
140
139
141
# 运行后端
140
142
python3 app.py --env=dev
@@ -193,7 +195,7 @@ cd dash-fastapi-backend
193
195
194
196
# 运行sql文件
195
197
1.新建数据库dash-fastapi(默认,可修改)
196
- 2.使用命令或数据库连接工具运行sql文件夹下的dash-fastapi.sql
198
+ 2.如果使用的是MySQL数据库, 使用命令或数据库连接工具运行sql文件夹下的dash-fastapi.sql;如果使用的是PostgreSQL数据库,使用命令或数据库连接工具运行sql文件夹下的dash-fastapi-pg .sql
197
199
198
200
# 运行后端
199
201
python3 app.py --env=prod
@@ -213,14 +215,14 @@ python3 app.py --env=prod
213
215
如果有对本项目及FastAPI感兴趣的朋友,欢迎加入知识星球一起交流学习,让我们一起变得更强。如果你觉得这个项目帮助到了你,你可以请作者喝杯咖啡表示鼓励☕。扫描下面微信二维码添加微信备注DF-Admin即可进群,也欢迎大家加入dash大神费弗里的知识星球学习更多dash开发知识。
214
216
<table >
215
217
<tr>
216
- <td><img alt="zanzhu_wx" src="https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/zanzhu_wx.jpg"></td>
217
- <td><img alt="zanzhu_zfb" src="https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/zanzhu_zfb.jpg"></td>
218
+ <td style="width: 50%" ><img alt="zanzhu_wx" src="https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/zanzhu_wx.jpg"></td>
219
+ <td style="width: 50%" ><img alt="zanzhu_zfb" src="https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/zanzhu_zfb.jpg"></td>
218
220
</tr>
219
221
<tr>
220
- <td><img alt="zsxq" src="https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/zsxq.jpg"></td>
221
- <td><img alt="dashzsxq" src="https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/dashzsxq.jpg"></td>
222
+ <td style="width: 50%" ><img alt="zsxq" src="https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/zsxq.jpg"></td>
223
+ <td style="width: 50%" ><img alt="dashzsxq" src="https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/dashzsxq.jpg"></td>
222
224
</tr>
223
225
<tr>
224
- <td><img alt="wxcode" src="https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/wxcode.jpg"></td>
226
+ <td style="width: 50%" ><img alt="wxcode" src="https://gitee.com/insistence2022/dash-fastapi-admin/raw/master/demo-pictures/wxcode.jpg"></td>
225
227
</tr>
226
228
</table >
0 commit comments