English | 简体中文
Gin-vue-admin is a full-stack (frontend and backend separation) framework designed for management system. It integrates multiple functions, such as JWT authentication, dynamic routing, dynamic menu, casbin authentication, form generator, code generator, etc. So that you can focus more time on your business Requirements.
Hi! Thank you for choosing gin-vue-admin.
Gin-vue-admin is a full-stack (frontend and backend separation) framework for developers, designers and product managers.
We are excited that you are interested in contributing to gin-vue-admin. Before submitting your contribution though, please make sure to take a moment and read through the following guidelines.
Issues are exclusively for bug reports, feature requests and design-related topics. Other questions may be closed directly. If any questions come up when you are using Element, please hit Gitter for help.
Before submitting an issue, please check if similar problems have already been issued.
Fork this repository to your own account. Do not create branches here.
Commit info should be formatted as [File Name]: Info about commit.
(e.g. README.md: Fix xxx bug
)
Make sure PRs are created to develop
branch instead of master
branch.
If your PR fixes a bug, please provide a description about the related bug.
Merging a PR takes two maintainers: one approves the changes after reviewing, and then the other reviews and merges.
master: 2.0 dev code, for prod
develop: 2.0 dev code, for test
gin-vue-admin_v2.0_dev (v2.0 is no longer compatible with v1.0)
gin-vue-admin_v1.0_stable (v1.0 is kept up to date and maintained)
gin-vue-admin_v1.0_dev (v1.0 is kept up to date and maintained)
- node version > v8.6.0
- golang version >= v1.11
- IDE recommendation: Goland
- After you clone the project, use the scripts in directory db to create your own database.
- We recommend you to apply for your own cloud service in QINIU. Replace the public key, private key, warehouse name and default url address with your own, so as not to mess up the test database.
# clone the project
git clone https://github.com/piexlmax/gin-vue-admin.git
# enter the project directory
cd web
# install dependency
npm install
# develop
npm run serve
# using go.mod
# install go modules
go list (go mod tidy)
# build the server
go build
go get -u github.com/swaggo/swag/cmd/swag
In mainland China, access to go.org/x is prohibited,we recommend gopm
# install gopm
go get -v -u github.com/gpmgo/gopm
# get swag
gopm get -g -v github.com/swaggo/swag/cmd/swag
# cd GOPATH/src/github.com/swaggo/swag/cmd/swag
go install
cd server
swag init
After executing the above command,docs
will show in server/
,then open your browser, jump into http://localhost:8888/swagger/index.html
to see the swagger APIs.
Element-UI
based on vue,to code the page.Gin
to quickly build basic RESTful API. Gin
is a web framework written in Go (Golang).MySql
(5.6.44),using gorm
to implement data manipulation, added support for SQLite databases.Redis
to implement the recording of the JWT token of the currently active user and implement the multi-login restriction.fsnotify
and viper
to implement yaml
config file。go-logging
record logs。 ├─server (backend)
│ ├─api (API entrance)
│ ├─config (config file)
│ ├─core (core code)
│ ├─db (db scripts)
│ ├─docs (swagger APIs docs)
│ ├─global (global objet)
│ ├─initialiaze (initialiazation)
│ ├─middleware (middle ware)
│ ├─model (model and services)
│ ├─resource (resources, such as static pages, templates)
│ ├─router (routers)
│ ├─service (services)
│ └─utils (common utilities)
└─web (frontend)
├─public (deploy templates)
└─src (source code)
├─api (frontend APIs)
├─assets (static files)
├─components(components)
├─router (frontend routers)
├─store (vuex state management)
├─style (common styles)
├─utils (frontend common utilitie)
└─view (pages)
jwt
and casbin
.Restful example: You can see sample APIs in user management module.
fontend code file: src\view\superAdmin\api\api.vue
backend code file: model\dnModel\api.go
Multi-login restriction: Change userMultipoint
to true in system
in config.yaml
(You need to configure redis and redis parameters yourself. During the test period, please report in time if there is a bug).
Upload file by chunk:Provides examples of file upload and large file upload by chunk.
Form Builder:With the help of @form-generator.
Code generator: Providing backend with basic logic and simple curd code generator.
https://www.yuque.com/flipped-aurora
There are video courses about frontend framework in our blo. If you think the project is helpful to you, you can add my personal WeChat:shouzi_1994,your comments is welcomed。
(1) Development environment course
Bilibili:https://www.bilibili.com/video/BV1Fg4y187Bw/ (coming soon)
(2) Template course
Bilibili:https://www.bilibili.com/video/BV1Fg4y187Bw/ (coming soon)
(3) Golang basic course (coming soon)
https://space.bilibili.com/322210472/channel/detail?cid=108884
| QQ group |
| :---: |
| |
Jiang | Yin | Yan | Du | Yin | Song |
---|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Nick name | Project position | First name |
---|---|---|
@piexlmax | Project sponsor | Jiang |
@granty1 | Backend developer | Yin |
@Ruio9244 | Full-stack developer | Yan |
@1319612909 | UI developer | Du |
@krank666 | Frontend developer | Yin |
@chen-chen-up | Novice developer | Song |
If you find this project useful, you can buy author a glass of juice :tropical_drink: