基于Gin + Vue + Element UI & Arco Design & Ant Design 的前后端分离权限管理系统脚手架(包含了:多租户的支持,基础用户管理功能,jwt鉴权,代码生成器,RBAC资源控制,表单构建,定时任务等)3分钟构建自己的中后台项目;项目文档》:https://www.go-admi
基于Gin + Vue + Element UI & Arco Design & Ant Design 的前后端分离权限管理系统脚手架(包含了:多租户的支持,基础用户管理功能,jwt鉴权,代码生成器,RBAC资源控制,表单构建,定时任务等)3分钟构建自己的中后台项目;项目文档》:https://www.go-admi
The front-end and back-end separation authority management system based on Gin + Vue + Element UI OR Arco Design OR Ant Design is extremely simple to initialize the system. You only need to modify the database connection in the configuration file. The system supports multi-instruction operations. Migration instructions can make it easier to initialize database information. Service instructions It's easy to start the api service.
Element Plus vue3 demo:https://vue.go-admin.pro
Account / Password: admin / 123456
antd demo (go-admin-pro):https://antd.go-admin.pro
Account / Password: admin / 123456
Follow RESTful API design specifications
Based on the GIN WEB API framework, it provides rich middleware support (user authentication, cross-domain, access log, tracking ID, etc.)
RBAC access control model based on Casbin
JWT authentication
Support Swagger documents (based on swaggo)
Database storage based on GORM, which can expand multiple types of databases
Simple model mapping of configuration files to quickly get the desired configuration
Code generation tool
Form builder
Multi-command mode
TODO: unit test
You need to install locally [go] [gin] node 和 git
At the same time, a series of tutorials including videos and documents are provided. How to complete the downloading to the proficient use, it is strongly recommended that you read these tutorials before you practice this project! ! !
Step 1 - basic content introduction
Step 2 - Practical application - writing database operations
Easily implement business using build tools
v1.1.0 version code generation tool-free your hands [Advanced]
Explanation of multi-command startup mode and IDE configuration
Configuration instructions for go-admin menu [Must see]
How to configure menu information and interface information [Must see]
go-admin permission configuration instructions [Must see]
Instructions for use of go-admin data permissions [Must see]
If you have any questions, please read the above-mentioned usage documents and articles first. If you are not satisfied, welcome to issue and pr. Video tutorials and documents are being updated continuously.
go 1.26.5
nodejs: v22+ (v24 LTS recommended)
package manager: pnpm v9+ (the UI project uses pnpm)
# Create a development directory
mkdir goadmin
cd goadminImportant note: the two projects must be placed in the same folder;
# Get backend code
git clone https://github.com/go-admin-team/go-admin.git
# Get the front-end code
git clone https://github.com/go-admin-team/go-admin-ui.git
# 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⚠️ Note that this problem will occur if CGO is not installed in the windows10+ environment;
E:\go-admin>go build
# github.com/mattn/go-sqlite3
cgo: exec /missing-cc: exec: "/missing-cc": file does not existor
D:\Code\go-admin>go build
# github.com/mattn/go-sqlite3
cgo: exec gcc: exec: "gcc": executable file not found in %PATH%Solve the cgo problem and enter
# 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# 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-servergo generate# windows
env GOOS=windows GOARCH=amd64 go build main.go
# or
# linux
env GOOS=linux GOARCH=amd64 go build main.go# Install pnpm if you don't have it
npm install -g pnpm
# Installation dependencies
pnpm install
# Start service
pnpm dev| wenjianzhang | |||
| Wechat公众号 | bilibili |
The go-admin project has always been developed in the GoLand integrated development environment under JetBrains, based on the free JetBrains Open Source license(s) genuine free license. I would like to express my gratitude.
打开日志管理界面后会卡死
在同一数据库上运行第二个实例会导致作业调度程序出错
支持一个用户访问多个项目,并为用户在不同项目配置不同的角色;统一管理角色和接口权限,项目业务数据继续使用独立的数据库隔离。
支付渠道插件:管理员只需填写表单即可使用 / Payment channel plugin: 进行配置,不需要集成
关于权限设置的问题
登录二次验证(TOTP)/ 双因素登录 (TOTP)
当在同一个路由下,并发请求相同的 GET 接口时,会导致结果合并到同一个接口的响应中,并且 requestId 相同。
基于当前 master 生成的带有前端代码无法运行
Sentinel 限流 限流错误
日志中是否可以添加保留多少天的日志功能?