天天看點

基于Gin+Vue+ElementUI&AntDesign前後端分離權限管理系統腳手架

大家好我是仁傑,今天給大家分享一款基于Gin+Vue+ElementUI &AntDesign的前後端分離權限管理系統腳手架。

介紹

項目是基于Gin + Vue + ElementUI + Ant Design的前後端分離的權限管理系統腳手架。系統主要包括多租戶、基礎使用者功能、jwt鑒權、代碼生成、RBAC資源控制、表單結構、定時任務等。

預覽

基于Gin+Vue+ElementUI&AntDesign前後端分離權限管理系統腳手架

使用者登入頁面

基于Gin+Vue+ElementUI&AntDesign前後端分離權限管理系統腳手架

系統首頁

基于Gin+Vue+ElementUI&AntDesign前後端分離權限管理系統腳手架

接口管理

基于Gin+Vue+ElementUI&AntDesign前後端分離權限管理系統腳手架

參數設定

基于Gin+Vue+ElementUI&AntDesign前後端分離權限管理系統腳手架

使用者管理

基于Gin+Vue+ElementUI&AntDesign前後端分離權限管理系統腳手架

角色管理

基于Gin+Vue+ElementUI&AntDesign前後端分離權限管理系統腳手架

菜單管理

基于Gin+Vue+ElementUI&AntDesign前後端分離權限管理系統腳手架

部門管理

基于Gin+Vue+ElementUI&AntDesign前後端分離權限管理系統腳手架

崗位管理

基于Gin+Vue+ElementUI&AntDesign前後端分離權限管理系統腳手架

字典管理

基于Gin+Vue+ElementUI&AntDesign前後端分離權限管理系統腳手架

參數管理

基于Gin+Vue+ElementUI&AntDesign前後端分離權限管理系統腳手架

登入日志

基于Gin+Vue+ElementUI&AntDesign前後端分離權限管理系統腳手架

記錄檔

基于Gin+Vue+ElementUI&AntDesign前後端分離權限管理系統腳手架

定時任務

基于Gin+Vue+ElementUI&AntDesign前後端分離權限管理系統腳手架

系統工具

基于Gin+Vue+ElementUI&AntDesign前後端分離權限管理系統腳手架

個人中心

部署

啟動服務

# 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互動操作簡單,上手快。

繼續閱讀