基于goframe+vue搭建的后台管理系统框架,集成jwt鉴权,权限管理,动态路由,分页封装,多点登录拦截,资源权限,上传下载,代码生成器,表单生成器等基础功能,五分钟一套CURD前后端代码包含数据库的快感你不要体验一下吗~,更多功能正在开发中,欢迎issue和pr~
Go to file
2020-08-28 13:18:10 +08:00
docker 更新README的预览地址,修复docker-compose的mysql访问不到的问题 2020-08-08 18:39:49 +08:00
docs 修改logo比例 2020-08-26 18:31:40 +08:00
server 修复模板bug,以及自动化代码的api信息,parameters为空的情况不进行查询 2020-08-28 13:18:10 +08:00
web 新增gva的2.2.2版本的功能,具体看gva的2.2.2版本说明,修复一些数据同步的bug以及model模板的包名的错误 2020-08-26 16:46:03 +08:00
.dockerignore 迁移gin-vue-admin的Frist Commit 2020-07-03 09:38:08 +08:00
.gitignore 更换gf-vue-admin的logo 2020-08-26 18:21:18 +08:00
CODE_OF_CONDUCT.md 迁移gin-vue-admin的Frist Commit 2020-07-03 09:38:08 +08:00
CONTRIBUTING.md 迁移gin-vue-admin的Frist Commit 2020-07-03 09:38:08 +08:00
docker-compose.yaml 更换初始的sql,新增dockercompose的支持,但未测试成功 2020-08-08 18:06:07 +08:00
Dockerfile 更换初始的sql,新增dockercompose的支持,但未测试成功 2020-08-08 18:06:07 +08:00
LICENSE 迁移gin-vue-admin的Frist Commit 2020-07-03 09:38:08 +08:00
package-lock.json 新增gva的2.2.2版本的功能,具体看gva的2.2.2版本说明,修复一些数据同步的bug以及model模板的包名的错误 2020-08-26 16:46:03 +08:00
README-zh_CN.md 添加MakeFile,修复模板错误,修复文档的错误 2020-08-21 16:20:15 +08:00
README.md 添加MakeFile,修复模板错误,修复文档的错误 2020-08-21 16:20:15 +08:00

This is English documentation

简体中文

Project documentation

Online documentation

1. basic introduction

1.1 Project Introduction

Online preview

Gf-vue-admin is a full-stack back-end management system based on vue and GoFrame. It integrates jwt authentication, dynamic routing, dynamic menu, casbin authentication, form generator, code generator and other functions, providing multiple

This kind of sample files allows you to devote more time to business development.

1.2 Contribution guide

Hi! First of all, thank you for using gf-vue-admin.

GoFrame-vue-admin is a set of open source frameworks prepared for the back-end management platform with a separated architecture of front and back ends, aiming to quickly build a back-end management system.

The growth of GoFrame-vue-admin is inseparable from everyone's support. If you are willing to contribute code or provide suggestions for GoFrame-vue-admin, please read the following.

1.2.1 Issue specification

  • Issues are only used to submit bugs or features and design-related content, other content may be directly closed。If you have questions while usingGo to Slack or Gitter Consulting。

  • Before submitting an issue, please search whether the relevant content has been submitted。

1.2.2 Pull Request specification

  • Please fork a copy to your own project first, do not directly branch under the warehouse。

  • The commit information should be [filename]: description Fill in the formfor example README.md: fix xxx bug

  • Ensure that the PR is submitted to develop BranchInstead of  master Branch。

  • If it is a bug fix, please provide a description in the PR。

  • The merging code requires the participation of two maintainers: one approve after review, the other review again, and the merge can be done after approval。

1.3 Version list

  • master: 1.0, function is currently being tested

2. Instructions for use

-node version> v8.6.0
-golang version >= v1.11
-IDE recommendation: Goland
-After the clone project, after you import the db file into the library you created, it is best to go to Qiniu Cloud to apply for your own space address.
-Replace the Qiniu Cloud public key, private key, warehouse name and default URL address in the project to avoid data confusion in the test file

2.1 web

# clone the project
git clone https://github.com/flipped-aurora/gf-vue-admin.git

# enter the project directory
cd web

# install dependency
npm install

# develop
npm run serve

2.2 server

# Use go.mod
# Install go dependencies
go list (go mod tidy)

# Compile
go build

2.3 swagger automation API documentation

  • Reasons to remove swagger
    • Comment redundant code, resulting in bloated code
    • Recommend alternative tool apipost

3. Technical selection

  • Frontend: using Element-UI based on vueto code the page.
  • Backend: using Gin to quickly build basic RESTful API. Gin is a web framework written in Go (Golang).
  • DB: MySql(8.0.19)use gdb to realize the basic operation of the database..
  • Cache: using Redis to implement the recording of the JWT token of the currently active user and implement the multi-login restriction.
  • Config: using gcfg Configuration management 。
  • Log: using glog record logs。

4. Project structure

4.1 System architecture diagram

系统架构图

4.2 Front-end detailed design drawing provider:baobeisuper

前端详细设计图

4.3 目录结构

    ├─server  	     backend
    └─web            frontend
        ├─public        deploy templates
        └─src           source code
            ├─api       frontend APIs
            ├─assets	static files
            ├─componentscomponents
            ├─router	frontend routers
            ├─store     vuex state management
            ├─style     common styles
            ├─utils     frontend common utilitie
            └─view      pages


See this directory for the backend

5. The main function

  • authority managementbased on gf-jwt And casbin Implemented rights management
  • File upload and downloadRealize file upload operation based on Qiniu Cloud
  • Paging packageThe front end uses mixins to encapsulate paging, and the paging method calls mixins
  • User ManagementSystem administrators assign user roles and role permissions。
  • Role managementCreate the main object of permission control, you can assign different api permissions and menu permissions to roles。
  • Menu managementRealize user dynamic menu configuration, realize different menus for different roles。
  • api managementDifferent users have different permissions on the api interface that can be called。
  • Rich text editorMarkDown Editor function embedded。
  • Conditional searchAdd conditional search example。
  • restful ExampleYou can refer to the sample API in the user management module。
  • Multi-sign-in restrictions需要在config.toml中把system中的UseMultipoint修改为true
  • Split long passProvide examples of file segment upload and large file segment upload function
  • Form builderThe form builder uses @form-generator
  • Code generatorBasic background logic and simple curd code generator。

6. Scheduled Tasks

  • Import, export to Excel
  • Echart chart support
  • Workflow, task handover function development
  • Separate front-end usage mode and data simulation
  • User multi-role
  • Self-written api batch import permission assignment list
  • Automatic import of generated files

7. knowledge base

7.1 Team blog

https://www.yuque.com/flipped-aurora

There are front-end framework instructional videos inside.

If you think the project is helpful to you, you can add my personal WeChat: shouzi_1994, welcome your valuable needs。

7.2 Teaching video

1Golang basic instructional video recording...

https://space.bilibili.com/322210472/channel/detail?cid=108884

8. Contact information

8.1 Technology Group

QQ群

QQ exchange group1040044540

WeChat exchange group: add WeChat account SliverHorn, note "join gf-vue-admin exchange group"

8.2 Project team members

image-20200803170441708 image-20200803181537723
昵称 项目职务
@piexlmax 项目发起者
@granty1 后台开发
@Ruio9244 全栈开发
@1319612909 前端UI开发
@krank666 前端开发
@chen-chen-up 新手开发
@SliverHorn 社区管理员
@LLemonGreen 文档编纂员

9. Donate

If you find this project useful, you can buy author a glass of juice 🍹 here

10. Commercial considerations

If you use this project for commercial purposes, please comply with the Apache2.0 agreement and retain the author's technical support statement.