Analysis of
Gin + GORM + Casbin + vue-element-admin realization of rights management systems based on
Casbin implement RBAC rights-based management.
Front-end implementation: vue-element-admin.
See the end the open-source address.
Reason
A while back, the open source after goapp, plus a lot of friends I have some friends vue still relatively unfamiliar, do not know how to add your first background management functions, more problems are encountered routing configuration, menu configuration, etc.,
This article describes how to add a function. The hope of a friend in need some help. Open Source for months to get the attention and support of many friends, the late time intend to write another grpc a micro version of the service branch.
Details step
Step one: Run Project
cd cmd/manageweb,go run main.go
cd website/manageweb,npm install,npm run dev
Step 2: Create a file test.vue in \ app \ directory under sys goapp \ website \ manageweb \ src \ views
Step Three: Configure the route map in goapp \ website \ manageweb \ src \ store \ modules \ permission.js file
Step 4: Add the Admin menu in menu management function, the code and the third step of the item you want to configure the 'Test' agreement
Step Five: Configure permissions in the new menu items in the role management functions
Step Six: Refresh the page to see the new added features page
Open Source Address : https://github.com/it234/goapp