基于Gin+Vue+ElementUI&AntDesign前后端分离权限管理系统脚手架

大家好我是仁杰,今天给大家分享一款基于Gin+Vue+ElementUI &AntDesign的前后端分离权限管理系统脚手架。

介绍

项目是基于Gin + Vue + ElementUI + Ant Design的前后端分离的权限管理系统脚手架。系统主要包括多租户、基础用户功能、jwt鉴权、代码生成、RBAC资源控制、表单结构、定时任务等。

预览

用户登录页面


系统首页


接口管理


参数设置

用户管理


角色管理


菜单管理


部门管理


岗位管理


字典管理


参数管理


登录日志


操作日志


定时任务


系统工具


个人中心

部署

启动服务

# Enter the go-admin backend project
cd ./go-admin

# Update dependencies
go mod tidy

# Compile the project
go build

# Change setting 
# File path go-admin/config/settings.yml
vi ./config/settings.yml

# 1. Modify the database information in the configuration file
# Note: The corresponding configuration data under settings.database
# 2. Confirm the log path

E:\go-admin>go build
# github.com/mattn/go-sqlite3
cgo: exec /missing-cc: exec: "/missing-cc": file does not exist

D:\Code\go-admin>go build
# github.com/mattn/go-sqlite3
cgo: exec gcc: exec: "gcc": executable file not found in %PATH%

初始化数据库

# The first configuration needs to initialize the database resource information
# Use under macOS or linux
$ ./go-admin migrate -c config/settings.dev.yml

# ⚠️Note: Use under windows
$ go-admin.exe migrate -c config/settings.dev.yml

# Start the project, you can also use the IDE for debugging
# Use under macOS or linux
$ ./go-admin server -c config/settings.yml

# ⚠️Note: Use under windows
$ go-admin.exe server -c config/settings.yml

docker编译

# Compile the image
docker build -t go-admin .

# Start the container, the first go-admin is the container name, and the second go-admin is the image name
# -v Mapping configuration file Local path: container path
docker run --name go-admin -p 8000:8000 -v /config/settings.yml:/config/settings.yml -d go-admin-server

前端编译

# Installation dependencies
npm install   # or cnpm install

# Start service
npm run dev

总结

前后端分离的权限关系系统脚手架,内置功能丰富。系统结构代码清晰,简单易读;部署简单,支持二次开发。该系统页面UI交互操作简单,上手快。

举报
评论 0