django-vue-admin/README.md

178 lines
7.3 KiB
Markdown
Raw Normal View History

2021-02-25 17:15:54 +00:00
# Django-Vue-Admin
2021-05-05 13:49:56 +00:00
[![img](https://img.shields.io/badge/license-MIT-blue.svg)](https://gitee.com/liqianglog/django-vue-admin/blob/master/LICENSE) [![img](https://img.shields.io/badge/python-%3E=3.6.x-green.svg)](https://python.org/) [![PyPI - Django Version badge](https://img.shields.io/badge/django%20versions-2.2-blue)](https://docs.djangoproject.com/zh-hans/2.2/) [![img](https://img.shields.io/badge/node-%3E%3D%2012.0.0-brightgreen)](https://nodejs.org/zh-cn/) [![img](https://gitee.com/liqianglog/django-vue-admin/badge/star.svg?theme=dark)](https://gitee.com/liqianglog/django-vue-admin)
2021-02-25 17:15:54 +00:00
2021-02-26 11:57:14 +00:00
## 平台简介
Django-Vue-Admin 是一套全部开源的快速开发平台,毫无保留给个人及企业免费使用。
* 前端采用ruoyi-ui 、Vue、Element UI。
* 后端采用Python语言Django框架。
* 权限认证使用Jwt支持多终端认证系统。
* 支持加载动态权限菜单,多方式轻松权限控制。
2021-05-05 13:49:56 +00:00
* 特别鸣谢:<u>[Gin-Vue-Admin](https://www.gin-vue-admin.com/)</u>[RuoYi](https://gitee.com/y_project/RuoYi-Vue) [Vue-Element-Admin](https://github.com/PanJiaChen/vue-element-admin)。
2021-02-26 11:57:14 +00:00
2021-02-25 17:15:54 +00:00
## QQ群
- QQ群号812482043
- 二维码
2021-02-25 17:17:53 +00:00
2021-02-25 17:21:32 +00:00
<img src='https://gitee.com/liqianglog/django-vue-admin/raw/master/dvadmin-ui/src/assets/images/qq.jpg' width='200'>
2021-02-25 17:15:54 +00:00
2021-02-22 15:53:43 +00:00
## 源码地址
gitee地址(主推)[https://gitee.com/liqianglog/django-vue-admin](https://gitee.com/liqianglog/django-vue-admin)
2021-02-22 15:53:43 +00:00
2021-02-27 13:33:11 +00:00
github地址[https://github.com/liqianglog/django-vue-admin](https://github.com/liqianglog/django-vue-admin)
2021-02-22 15:53:43 +00:00
## 内置功能
##### 后期版本 [版本功能说明](https://gitee.com/liqianglog/django-vue-admin/wikis/releaseNote?sort_id=3615540)
2021-03-11 16:44:55 +00:00
2021-02-22 15:53:43 +00:00
1. 用户管理:用户是系统操作者,该功能主要完成系统用户配置。
2. 部门管理:配置系统组织机构(公司、部门、小组),树结构展现支持数据权限。
3. 岗位管理:配置系统用户所属担任职务。
2021-03-11 16:44:55 +00:00
4. 菜单管理:配置系统菜单,操作权限,按钮权限标识、后端接口权限等。
5. 角色管理:角色菜单权限分配、数据权限分配、设置角色按机构进行数据范围权限划分。
2021-02-22 15:53:43 +00:00
6. 字典管理:对系统中经常使用的一些较为固定的数据进行维护。
7. 参数管理:对系统动态配置常用参数。
2021-03-11 16:44:55 +00:00
8. 文件管理:管理所有上传的和导出的文件。
9. 通知公告:发布通知公告给所有人,进行消息的通知。
10. 操作日志:系统正常操作日志记录和查询;系统异常信息日志记录和查询。
11. 登录日志:系统登录日志记录查询包含登录异常。
2021-03-31 16:17:28 +00:00
12. 定时日志celery定时任务执行日志记录。
13. 在线用户:当前系统中活跃用户状态监控、用户强退功能。
14. 定时任务:在线(添加、修改、删除)任务调度包含执行结果日志。
15. 在线构建器拖动表单元素生成相应的HTML代码。
16. 服务监控进行可视化的服务器监控CPU、内存、文件使用率等信息。
2021-02-22 15:53:43 +00:00
## 在线体验
演示地址:[http://demo.django-vue-admin.com](http://demo.django-vue-admin.com) 账号admin 密码123456
2021-02-22 15:53:43 +00:00
文档地址:[http://django-vue-admin.com](http://django-vue-admin.com)
2021-02-22 15:53:43 +00:00
## 前端
### 开发
```bash
# 克隆项目
git clone https://gitee.com/liqianglog/django-vue-admin.git
# 进入项目目录
cd dvadmin-ui
# 安装依赖
npm install --registry=https://registry.npm.taobao.org
# 启动服务
npm run dev
# 浏览器访问 http://localhost:8080
2021-02-26 11:57:14 +00:00
# .env.development 文件中可配置启动端口等参数
2021-02-22 15:53:43 +00:00
```
### 发布
```bash
# 构建测试环境
npm run build:stage
# 构建生产环境
npm run build:prod
```
## 后端
2021-02-26 11:57:14 +00:00
~~~bash
1. 进入项目目录 cd dvadmin-backend
2021-02-26 15:47:54 +00:00
2. 在项目根目录中,复制 ./conf/env.example.py 文件为一份新的到 ./conf 文件夹下,并重命名为 env.py
2021-02-26 11:57:14 +00:00
3. 在 env.py 中配置数据库信息
mysql数据库版本建议8.0
mysql数据库字符集utf8mb4
2021-02-26 11:58:42 +00:00
4. 安装依赖环境
pip3 install -r requirements.txt
5. 执行迁移命令:
2021-02-26 11:57:14 +00:00
python3 manage.py makemigrations
python3 manage.py migrate
2021-03-24 17:09:30 +00:00
6. 初始化数据
2021-03-15 01:14:31 +00:00
python3 manage.py init
2021-03-24 17:09:30 +00:00
7. 启动项目
python3 manage.py runserver 127.0.0.1:8000
2021-03-24 17:09:30 +00:00
定时任务启动命令:
celery -A application worker -B --loglevel=info
注:
Windows 运行celery 需要安装 pip install eventlet
celery -A application worker -P eventlet --loglevel=info
2021-03-24 17:09:30 +00:00
初始账号admin 密码123456
后端接口文档地址http://127.0.0.1:8000/docs/
2021-02-26 11:57:14 +00:00
~~~
2021-03-31 16:08:21 +00:00
### docker-compose 运行
~~~shell
# 先安装docker-compose (自行百度安装),执行此命令等待安装
docker-compose up
# 初始化后端数据(第一次执行即可)
docker exec -ti dvadmin-django bash
python manage.py init -y
exit
前端地址http://127.0.0.1:8080
后端地址http://127.0.0.1:8000
账号admin 密码123456
~~~
2021-02-22 15:53:43 +00:00
## 演示图
<table>
<tr>
<td><img src="https://images.gitee.com/uploads/images/2021/0505/155624_fc01f49e_5074988.jpeg" height="200" width="400"/></td>
<td><img src="https://images.gitee.com/uploads/images/2021/0505/162526_68e8c4c5_5074988.png" height="200" width="400"/></td>
2021-02-22 15:53:43 +00:00
</tr>
<tr>
<td><img src="https://images.gitee.com/uploads/images/2021/0505/163049_0a16b3b8_5074988.png" height="200" width="400"/></td>
<td><img src="https://images.gitee.com/uploads/images/2021/0505/163157_628941bc_5074988.png" height="200" width="400"/></td>
2021-02-22 15:53:43 +00:00
</tr>
<tr>
<td><img src="https://images.gitee.com/uploads/images/2021/0505/163444_73d4a6ae_5074988.png" height="200" width="400"/></td>
<td><img src="https://images.gitee.com/uploads/images/2021/0505/163456_c4ddcaf6_5074988.png" height="200" width="400"/></td>
2021-02-22 15:53:43 +00:00
</tr>
<tr>
<td><img src="https://images.gitee.com/uploads/images/2021/0505/163732_48cca279_5074988.png" height="200" width="400"/></td>
<td><img src="https://images.gitee.com/uploads/images/2021/0505/163756_99176d5d_5074988.png" height="200" width="400"/></td>
2021-02-22 15:53:43 +00:00
</tr>
<tr>
<td><img src="https://images.gitee.com/uploads/images/2021/0505/164149_b223657a_5074988.png" height="200" width="400"/></td>
<td><img src="https://images.gitee.com/uploads/images/2021/0505/164226_58653572_5074988.png" height="200" width="400"/></td>
2021-02-22 15:53:43 +00:00
</tr>
<tr>
<td><img src="https://images.gitee.com/uploads/images/2021/0505/164259_e06fbfe9_5074988.png" height="200" width="400"/></td>
<td><img src="https://images.gitee.com/uploads/images/2021/0505/164330_6406c28f_5074988.png" height="200" width="400"/></td>
2021-02-22 15:53:43 +00:00
</tr>
<tr>
<td><img src="https://images.gitee.com/uploads/images/2021/0505/164359_add984a1_5074988.png" height="200" width="400"/></td>
<td><img src="https://images.gitee.com/uploads/images/2021/0505/181144_9665dae5_5074988.png" height="200" width="400"/></td>
</tr>
<tr>
<td><img src="https://images.gitee.com/uploads/images/2021/0505/181700_25edc19f_5074988.png" height="200" width="400"/></td>
<td><img src="https://images.gitee.com/uploads/images/2021/0505/181715_9305b7e8_5074988.png" height="200" width="400"/></td>
</tr>
<tr>
<td><img src="https://images.gitee.com/uploads/images/2021/0505/181732_953b05e4_5074988.png" height="200" width="400"/></td>
<td><img src="https://images.gitee.com/uploads/images/2021/0505/182122_73bddac6_5074988.png" height="200" width="400"/></td>
2021-02-22 15:53:43 +00:00
</tr>
</table>