Go to file
zty 25013fe8e1 fix:user_id 2024-06-06 11:18:24 +08:00
client feat:新增考试增加穿梭框 2024-06-05 13:54:01 +08:00
client_mp 添加考试和证书查询 2024-05-30 17:36:28 +08:00
docs cma_search 调整到阿里云测试环境 2021-06-17 11:59:27 +08:00
img first commit 2020-06-03 09:39:30 +08:00
server fix:user_id 2024-06-06 11:18:24 +08:00
ssl feat: 更新ssl 2024-04-28 10:58:49 +08:00
.gitattributes first commit 2020-06-03 09:39:30 +08:00
.gitignore feat: 增加证书查询html 2023-08-29 12:08:32 +08:00
LICENSE first commit 2020-06-03 09:39:30 +08:00
README.md first commit 2020-06-03 09:39:30 +08:00
specification.md first commit 2020-06-03 09:39:30 +08:00

README.md

简介

基于RBAC模型的权限控制的基础开发平台,前后端分离,后端采用django+django-rest-framework,前端采用vue+ElementUI.

JWT认证,具有审计功能

内置模块有组织机构\用户\角色\岗位\数据字典\文件库

支持功能权限(控权到每个接口)和简单的数据权限(全部、本级及以下、同级及以下、本人等)

部分截图

image image image

启动(以下是在windows下开发操作步骤)

django后端

定位到server文件夹

新建log和media空文件夹

建立虚拟环境 python -m venv venv

激活虚拟环境 .\venv\scripts\activate

安装依赖包 pip install -r requirements.txt

修改数据库连接 server\settings_dev.py 或者直接使用sqlite数据库(超管账户密码均为admin)

同步数据库 python manage.py makemigrations system

同步数据库 python manage.py migrate

创建超级管理员 python manage.py createsuperuser

运行服务 python manage.py runserver 8000

vue前端

定位到client文件夹

安装node.js

安装依赖包 npm install --registry=https://registry.npm.taobao.org

运行服务 npm run dev

nginx

修改nginx.conf

listen 8012
location /media {
    proxy_pass http://localhost:8000;
}
location / {
    proxy_pass http://localhost:9528;
}

运行nginx.exe

运行

打开localhost:8012即可访问

接口文档 localhost:8000/docs

后台地址 localhost:8000/admin