# gin-admin **Repository Path**: ymwm2018/gin-admin ## Basic Information - **Project Name**: gin-admin - **Description**: gin-admin是一个基于vue和gin开发的全栈前后端分离的后台管理系统 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 6 - **Created**: 2021-07-28 - **Last Updated**: 2021-07-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README --- id: README title: English Document sidebar_label: English Document ---
English | [简体中文](./README.zh-CN.md) - Web UI Framework:[vue-vben-admin](https://github.com/anncwb/vue-vben-admin) - Server Framework:[Gin](https://github.com/gin-gonic/gin) # Project Document ## 1. Basic Introduction ### 1.1 Project Introduction [Online Demo](http://2wm.top/) username:guest password:123456 > Hi! Thank you for choosing gin-admin.gin-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, etc. So that you can focus more time on your business Requirements. ## 2. Getting started ``` - node version > v8.6.0 - golang version >= v1.14 - IDE recommendation: Goland ``` - clone the project ```git git clone https://github.com/coderchiang/gin-admin ``` - enter the project directory ```bash cd gin-admin ``` - add permission and exec ```bash # add permission sudo chmod a+x up.sh # exec ./up.sh ``` > `up.sh` Contains running scripts for all configurations of the project startup process ,the specific logic can be annotated according to your needs; you can also enter the web and server separately to build and configure the startup project. The specific operations are as follows: ### 2.1 Web ```bash # enter the project directory cd web # install dependency yarn install # develop yarn run serve # build yarn run build ``` ### 2.2 Server ```bash # enter the project directory cd server # using go.mod go env -w GO111MODULE=on #In mainland China, access to go.org/x is prohibited,we recommend [goproxy.io](https://goproxy.io/zh/) go env -w GOPROXY=https://goproxy.io,direct # install go modules go mod tidy # build the server go build ``` ### 2.3 Initial Configuration Guide - Configuration file[config.yaml](./server/conf/config.yaml) - Import sql initialization file (default mysql)[init.sql](./server/data/init.sql) ### 2.4 API docs generation ```` cd server swag init ```` After executing the above command,`docs` will show in `server/`,then open your browser, jump into `http://localhost/swagger/index.html` to see the swagger APIs. ## 3. Technical selection - Frontend: using `Vben` based on vue,to code the page. - Backend: using `Gin` to quickly build basic RESTful API. `Gin` is a web framework written in Go (Golang). - DB: `MySql`(5.7),using `gorm` to implement data manipulation, added support for SQLite databases. - Cache: using `Redis` to implement the recording of the JWT token of the currently active user and implement the multi-login restriction. - API: using Swagger to auto generate APIs docs。 - Config: using `fsnotify` and `viper` to implement `yaml` config file。 - Log: using `zap` record logs。 ## 4. Project Architecture ### 4.1 Architecture Diagram
|
Enter the QQ group, please do not advertise
#### Wechat group: comment "join gin-admin exchange group"
| Wechat |
| :---: |
|
|
Add WeChat, note "join gin-admin exchange group"
#### [About Us](http://2wm.top/about/)
## 9. Donate
If you find this project useful, you can buy author a glass of juice :tropical_drink: [here](http://2wm.top/about/)
## 10. Commercial considerations
This project uses the MIT protocol, and the front-end Framework Vben is also based on the MIT protocol. It is a completely open source and free project and can be used without restrictions