django-vue-admin/README.md

228 lines
13 KiB
Markdown
Raw Normal View History

2021-02-25 17:15:54 +00:00
# Django-Vue-Admin
[![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.7.x-green.svg)](https://python.org/) [![PyPI - Django Version badge](https://img.shields.io/badge/django%20versions-3.2-blue)](https://docs.djangoproject.com/zh-hans/3.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
2023-06-06 01:21:03 +00:00
[中文文档](./README.zh.md) | [preview](https://demo.django-vue-admin.com) | [Official website document](https://www.django-vue-admin.com) | [qq group](https://qm.qq.com/cgi-bin/qm/qr?k=fOdnHhC8DJlRHGYSnyhoB8P5rgogA6Vs&jump_from=webapi) | [community](https://bbs.django-vue-admin.com) | [plugins market](https://bbs.django-vue-admin.com/plugMarket.html) | [Github](https://github.com/liqianglog/django-vue-admin)
2022-04-05 05:25:15 +00:00
2023-06-06 01:21:03 +00:00
💡 **「About」**
2022-04-05 05:25:15 +00:00
2023-06-06 01:21:03 +00:00
We are a group of young people who love Code. In this hot era, we hope to calm down and bring some of our colors and colors through code.
2022-04-05 05:25:15 +00:00
2023-06-06 01:21:03 +00:00
Because of love, so embrace the future
2022-04-05 05:25:15 +00:00
2021-02-25 17:15:54 +00:00
2023-06-06 01:21:03 +00:00
🗓️ **「Development Roadmap」**
2023-06-01 06:40:52 +00:00
2023-06-06 01:21:03 +00:00
Please leave your valuable suggestions for creating a more comprehensive dvadmin [Submit Requirements](https://rgej2wr12o.feishu.cn/share/base/form/shrcnsHNfeC9URj6RIOR3xPPD3f) | [Roadmap](https://rgej2wr12o.feishu.cn/base/KevWbAzaEazgD2s8SmKc36PJnwb)
2023-06-01 06:40:52 +00:00
2023-06-06 01:21:03 +00:00
👩‍👦‍👦 **「Essay Competition」**
2023-06-01 06:40:52 +00:00
2023-06-06 01:21:03 +00:00
To promote better community development, we are organizing the dvadmin Essay Competition. Exciting prizes, including **perpetual commercial licenses**, await you. [Click here to view the details](https://bbs.django-vue-admin.com/question/462.html).
2023-06-01 06:40:52 +00:00
2023-06-06 01:21:03 +00:00
## framework introduction
2023-06-01 06:40:52 +00:00
2023-06-06 01:21:03 +00:00
💡 [django-vue-admin](https://gitee.com/dvadmin/django-vue-admin) Is a set of all open source rapid development platform, no reservation for individuals and enterprises free use.
2021-02-26 11:57:14 +00:00
2023-06-06 01:21:03 +00:00
* 🧑🤝🧑Front-end adoption[D2Admin](https://github.com/d2-projects/d2-admin) 、[Vue](https://cn.vuejs.org/)、[ElementUI](https://element.eleme.cn/)。
* 👭The backend uses the Python language Django framework as well as the powerful[Django REST Framework](https://pypi.org/project/djangorestframework)。
* 👫Permission authentication use[Django REST Framework SimpleJWT](https://pypi.org/project/djangorestframework-simplejwt)Supports the multi-terminal authentication system.
* 👬Support loading dynamic permission menu, multi - way easy permission control.
* 💏 Special thanks:[D2Admin](https://github.com/d2-projects/d2-admin) 、[Vue-Element-Admin](https://github.com/PanJiaChen/vue-element-admin)。
* 💡 Special thanks:[jetbrains](https://www.jetbrains.com/) To provide a free IntelliJ IDEA license for this open source project.
2022-04-05 05:25:15 +00:00
2023-06-06 01:21:03 +00:00
## Online experience
2022-04-05 05:25:15 +00:00
2023-06-06 01:21:03 +00:00
👩👧👦demo address:[http://demo.django-vue-admin.com](http://demo.django-vue-admin.com)
2022-04-05 05:25:15 +00:00
2023-06-06 01:21:03 +00:00
* demo accountsuperadmin
2022-04-05 05:25:15 +00:00
2023-06-06 01:21:03 +00:00
* demo passwordadmin123456
2022-04-05 05:25:15 +00:00
2023-06-06 01:21:03 +00:00
👩👦👦docs:[https://django-vue-admin.com](https://django-vue-admin.com)
2022-04-05 05:25:15 +00:00
2023-06-06 01:21:03 +00:00
## Communication
2022-04-05 05:25:15 +00:00
2023-06-06 01:21:03 +00:00
- Communication community:[click here](https://bbs.django-vue-admin.com)👩‍👦‍👦
2021-07-11 07:38:46 +00:00
2023-06-06 01:21:03 +00:00
- plugins market:[click here](https://bbs.django-vue-admin.com/plugMarket.html)👩‍👦‍👦
2022-04-05 05:25:15 +00:00
2023-06-06 01:21:03 +00:00
- django-vue-admin Discussion Group 01 (Full): 812482043 [Click here to join the group chat](https://qm.qq.com/cgi-bin/qm/qr?k=aJVwjDvH-Es4MPJQuoO32N0SucK22TE5&jump_from=webapi)
2021-02-25 17:15:54 +00:00
2023-06-06 01:21:03 +00:00
- django-vue-admin Discussion Group 02 (Full): 687252418 [Click here to join the group chat](https://qm.qq.com/cgi-bin/qm/qr?k=4jJN4IjWGfxJ8YJXbb_gTsuWjR34WLdc&jump_from=webapi)
2021-02-22 15:53:43 +00:00
2023-06-06 01:21:03 +00:00
- django-vue-admin Discussion Group 03 : 442108213 [Click here to join the group chat](https://qm.qq.com/cgi-bin/qm/qr?k=ESpuF6A1Fcx0XrY4w6CzCvbnjI4kNsa0&jump_from=webapi)
2021-02-22 15:53:43 +00:00
2023-06-06 01:21:03 +00:00
- QR Code Image
2021-02-22 15:53:43 +00:00
2023-06-01 06:40:52 +00:00
<img src='https://foruda.gitee.com/images/1685090287886551832/e3afa9e1_5074988.png' width='200'>
2021-02-22 15:53:43 +00:00
2022-04-05 05:25:15 +00:00
2023-06-06 01:21:03 +00:00
## core function
2023-06-01 06:40:52 +00:00
2023-06-06 01:21:03 +00:00
1. 👨‍⚕️ Menu management: Configure the system menu, operation permissions, button permissions, back-end interface permissions, etc.
2. 🧑‍⚕️ Department management: Configure the system organization (company, department, role).
3. 👩‍⚕️ Role management: role menu permission allocation, data permission allocation, set roles according to the department for data range permission division.
4. 🧑‍🎓 Rights Specifies the rights of the authorization role.
5. 👨‍🎓 User management: The user is the system operator, this function mainly completes the system user configuration.
6. 👬 Interface whitelist: specifies the interface that does not need permission verification.
7. 🧑‍🔧 Dictionary management: Maintenance of some fixed data frequently used in the system.
8. 🧑‍🔧 Regional management: to manage provinces, cities, counties and regions.
9. 📁 Attachment management: Unified management of all files and pictures on the platform.
10. 🗓 operation logs: log and query the system normal operation; Log and query system exception information.
11. 🔌 [plugins market](https://bbs.django-vue-admin.com/plugMarket.html) : based on the Django framework - Vue - Admin application and plug-in development.
2023-06-01 06:40:52 +00:00
2023-06-06 01:21:03 +00:00
## source code url:
2023-06-01 06:40:52 +00:00
2023-06-06 01:21:03 +00:00
gitee(Main push)[https://gitee.com/liqianglog/django-vue-admin](https://gitee.com/liqianglog/django-vue-admin)👩‍👦‍👦
2023-06-01 06:40:52 +00:00
2023-06-06 01:21:03 +00:00
github[https://github.com/liqianglog/django-vue-admin](https://github.com/liqianglog/django-vue-admin)👩‍👦‍👦
2022-04-05 05:25:15 +00:00
2023-06-06 01:21:03 +00:00
| Project | Star | Introduction |
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
| [django-vue-admin](https://gitee.com/liqianglog/django-vue-admin) | [![Gitee star](https://gitee.com/liqianglog/django-vue-admin/badge/star.svg?theme=white)](https://gitee.com/liqianglog/django-vue-admin) [![GitHub stars](https://img.shields.io/github/stars/liqianglog/django-vue-admin.svg?style=social&label=Stars)](https://github.com/liqianglog/django-vue-admin) | Management Dashboard based on <br />Vue2 + Element + D2Admin + Django. |
| [django-vue3-admin](https://gitee.com/huge-dream/django-vue3-admin) | [![Gitee star](https://gitee.com/huge-dream/django-vue3-admin/badge/star.svg?theme=white)](https://gitee.com/huge-dream/django-vue3-admin) [![GitHub stars](https://img.shields.io/github/stars/huge-dream/django-vue3-admin.svg?style=social&label=Stars)](https://github.com/huge-dream/django-vue3-admin) | Management Dashboard implemented based on <br />Vue3 + vue-next-admin + fastcrud + Django. |
2023-06-01 06:40:52 +00:00
2023-06-06 01:21:03 +00:00
## plugins market 🔌
2023-06-01 06:40:52 +00:00
2023-06-06 01:21:03 +00:00
#### [Click here to view the latest development progress](https://rgej2wr12o.feishu.cn/base/KevWbAzaEazgD2s8SmKc36PJnwb?table=tblpongo56gp6zN9&view=vewpLA5Hdc) | [Plugin Market](https://bbs.django-vue-admin.com/plugMarket.html)
2023-06-01 06:40:52 +00:00
2023-06-06 01:21:03 +00:00
| Plugin Name | Development Status | Description |
| ------------------------------------------------------------ | ------------------ | ------------------------------------------------------------ |
| [dvadmin3-celery 定时任务](https://bbs.django-vue-admin.com/plugMarket/129.html) | Released | Enables asynchronous tasks in dvadmin3, including task scheduling and record management |
| [dvadmin-celery 定时任务](https://bbs.django-vue-admin.com/plugMarket/115.html) | Released | Enables asynchronous tasks in dvadmin3, including task scheduling and record management |
| [dvadmin-sms 短信服务](https://bbs.django-vue-admin.com/plugMarket/128.html) | Released | Integrates SMS service plugins for various platforms |
| [dvadmin-vform 表单设计器](https://bbs.django-vue-admin.com/plugMarket/118.html) | Released | Low-code form designer plugin |
| [dvadmin-tenants 多租户管理](https://bbs.django-vue-admin.com/plugMarket/124.html) | Released | Saas mode for multi-tenancy management |
| [dvadmin-third 第三方用户管理](https://bbs.django-vue-admin.com/plugMarket/122.html) | Released | Plugin for managing third-party users |
| [dvadmin-ak-sk 加密密钥管理](https://bbs.django-vue-admin.com/plugMarket/120.html) | Released | Manages encryption keys for verifying authentication strings |
| [dvadmin-pay 支付插件](https://bbs.django-vue-admin.com/plugMarket/131.html) | Released | Payment plugin for dvadmin, supports WeChat Pay and Alipay |
| [dvadmin-uniapp](https://bbs.django-vue-admin.com/plugMarket/130.html) | Released | Uniapp plugin for dvadmin |
| dvadmin-cloud-storage 云存储插件 | Development | Plugin for storing files using various cloud storage providers |
| dvadmin-es 搜索插件 | Development | Search plugin for Elasticsearch |
| dvadmin-low-code-crud 低代码生成 | Development | Low-code generation plugin |
| dvadmin-flow 工作流插件 | Development | Workflow plugin |
2022-04-05 05:25:15 +00:00
2023-06-06 01:21:03 +00:00
## before start project you need:
2023-06-01 06:40:52 +00:00
2022-04-05 05:25:15 +00:00
~~~
2023-06-06 01:21:03 +00:00
Python >= 3.8.0
nodejs >= 14.0
Mysql >= 5.7.0 (Optional. The default database is sqlite3. 8.0 is recommended)
Redis(Optional, the latest edition)
2022-04-05 05:25:15 +00:00
~~~
2021-02-22 15:53:43 +00:00
2023-06-06 01:21:03 +00:00
## frontend♝
2021-02-22 15:53:43 +00:00
```bash
2023-06-06 01:21:03 +00:00
# clone code
2021-02-22 15:53:43 +00:00
git clone https://gitee.com/liqianglog/django-vue-admin.git
2023-06-06 01:21:03 +00:00
# enter code dir
2022-04-05 05:25:15 +00:00
cd web
2021-02-22 15:53:43 +00:00
2023-06-06 01:21:03 +00:00
# install dependence
2021-02-22 15:53:43 +00:00
npm install --registry=https://registry.npm.taobao.org
2023-06-06 01:21:03 +00:00
# Start service
2021-02-22 15:53:43 +00:00
npm run dev
2023-06-06 01:21:03 +00:00
# Visit http://localhost:8080 in your browser
# Parameters such as boot port can be configured in the #.env.development file
# Build the production environment
2022-04-05 05:25:15 +00:00
# npm run build
2021-02-22 15:53:43 +00:00
```
2023-06-06 01:21:03 +00:00
## backend💈
2021-02-22 15:53:43 +00:00
2021-02-26 11:57:14 +00:00
~~~bash
2023-06-06 01:21:03 +00:00
1. enter code dir cd backend
2. copy ./conf/env.example.py to ./conf dirrename as env.py
3. in env.py configure database information
mysql database recommended version: 8.0
mysql database character set: utf8mb4
4. install pip dependence
pip3 install -r requirements.txt
5. Execute the migration command:
python3 manage.py makemigrations
python3 manage.py migrate
6. Initialization data
python3 manage.py init
7. Initialize provincial, municipal and county data:
python3 manage.py init_area
8. start backend
python3 manage.py runserver 0.0.0.0:8000
or gunicorn :
2023-04-04 17:08:47 +00:00
gunicorn -c gunicorn_conf.py application.asgi:application
2022-04-05 05:25:15 +00:00
~~~
2023-06-06 01:21:03 +00:00
### visit backend swagger
2021-03-24 17:09:30 +00:00
2023-06-06 01:21:03 +00:00
* visit url[http://localhost:8080](http://localhost:8080) (The default address is this one. If you want to change it, follow the configuration file)
* account`superadmin` password`admin123456`
2021-03-24 17:09:30 +00:00
2023-06-06 01:21:03 +00:00
### docker-compose
2021-03-31 16:08:21 +00:00
~~~shell
2022-04-05 05:25:15 +00:00
docker-compose up -d
2023-06-06 01:21:03 +00:00
# Initialize backend data (first execution only)
2022-05-30 15:55:35 +00:00
docker exec -ti dvadmin-django bash
2022-04-05 05:25:15 +00:00
python manage.py makemigrations
python manage.py migrate
2022-05-30 15:55:35 +00:00
python manage.py init_area
python manage.py init
2021-03-31 16:08:21 +00:00
exit
2023-06-06 01:21:03 +00:00
frontend urlhttp://127.0.0.1:8080
backend urlhttp://127.0.0.1:8080/api
# Change 127.0.0.1 to your own public ip address on the server
account`superadmin` password`admin123456`
2022-04-05 05:25:15 +00:00
2023-06-06 01:21:03 +00:00
# docker-compose stop
2022-04-05 05:25:15 +00:00
docker-compose down
2023-06-06 01:21:03 +00:00
# docker-compose restart
2022-04-05 05:25:15 +00:00
docker-compose restart
2023-06-06 01:21:03 +00:00
# docker-compose on start build
2022-04-05 05:25:15 +00:00
docker-compose up -d --build
2021-03-31 16:08:21 +00:00
~~~
2023-06-06 01:21:03 +00:00
## Demo screenshot✅
2022-04-05 05:25:15 +00:00
2023-04-22 16:15:05 +00:00
![image-01](https://foruda.gitee.com/images/1682179942561449504/020863bb_5074988.jpeg)
2022-04-05 05:25:15 +00:00
2023-04-22 16:15:05 +00:00
![image-02](https://foruda.gitee.com/images/1682179701820334814/f20eb5e8_5074988.png)
2022-04-05 05:25:15 +00:00
2023-04-22 16:15:05 +00:00
![image-03](https://foruda.gitee.com/images/1682179718209143602/e6b6a4b1_5074988.png)
2022-04-05 05:25:15 +00:00
2023-04-10 09:24:57 +00:00
![image-04](https://foruda.gitee.com/images/1681118349561624452/d917f8bc_5074988.jpeg)
2022-04-05 05:25:15 +00:00
2023-04-10 09:24:57 +00:00
![image-05](https://foruda.gitee.com/images/1681118368415555513/03a8db63_5074988.jpeg)
2022-04-05 05:25:15 +00:00
2023-04-10 09:24:57 +00:00
![image-06](https://foruda.gitee.com/images/1681118379484890540/6f9caa75_5074988.jpeg)
2022-04-05 05:25:15 +00:00
2023-04-10 09:24:57 +00:00
![image-07](https://foruda.gitee.com/images/1681118387902110958/86d86d80_5074988.jpeg)
2022-04-05 05:25:15 +00:00
2023-04-10 09:24:57 +00:00
![image-08](https://foruda.gitee.com/images/1681118398381431700/1e3fa0ec_5074988.jpeg)
2022-05-30 15:55:35 +00:00
2023-04-10 09:24:57 +00:00
![image-09](https://foruda.gitee.com/images/1681118450796081811/aa00a240_5074988.png)
2022-05-30 15:55:35 +00:00
2023-04-10 09:24:57 +00:00
![image-10](https://foruda.gitee.com/images/1681118482618114892/5cc2e297_5074988.png)
2022-04-05 05:25:15 +00:00
2023-04-10 09:24:57 +00:00
![image-11](https://foruda.gitee.com/images/1681118492497719384/52a47252_5074988.png)
2023-04-04 17:08:47 +00:00
2023-04-10 09:24:57 +00:00
![image-12](https://foruda.gitee.com/images/1681118517168485285/f34152ba_5074988.png)
2023-04-04 17:08:47 +00:00
2023-06-06 01:21:03 +00:00
## Commercial License
2023-06-01 06:40:52 +00:00
2023-04-10 09:24:57 +00:00
![image-13](https://foruda.gitee.com/images/1681118527820910716/43a7c660_5074988.png)
2022-04-05 05:25:15 +00:00