大家好我是仁傑,今天給大家分享一款基于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互動操作簡單,上手快。