10 Star 106 Fork 34

huang_li_shi / GoFlyAdmin(Go快速开发后台系统框架)

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README
Apache-2.0

GoFly快速开发后台管理系统介绍

一、框架介绍

框架采用前后端分离,将Go与Vue结合开发中后台系统,Go作为一种高效、安全的编程语言,可以帮助开发者快速构建高效、可靠、安全的应用,Vue作为前端优秀框架,可以快速搭建漂亮,高体验,稳定前端页面。能让开发者开发时顺手,客户使用时满意,性能与颜值并存,让开每一个项目交付都能让您和您的客户双方都满意。Go 开发业务接口,vue 开发前端界面。后台管理系统从业务上分为: 总管理系统(admin 端简称 A 端)和业务端管理系统(专门编写业务的,方便系统做出 saas 形系统, 减少后期需要多个应用重构成本,遇到买系统时不要单独重新部署直接再 A 端开一个账号就可以, 业务端 business 简称 B 端)。天生自带SAAS多账号数据分离,可以做到不用重新部署,即可单独拉出新的一套。

GoFly快速开发框架来自我们的医疗项目,从2019年开始用于医疗系统开发,医疗项目已经运行多年,框架的安全性、并发性能、稳定性已经得到验证。特别是在疫情期间的疫苗预约接种留观等并发和反应速度都表现良好,你可放心使用于你的项目中去。

框架采用前后端分离,Go开发使用热编译,开发目录不建议太多文件,影响编译扫描效率,前段建议放在另外位置, git上传了全部的Go源码,前端代码和数据库请到GoFly社区下载,使用时有问题请加技术客服咨询,我们社区的初心是为不让开发者为难,打造一个让大家都舒服的社区,与大家共建一个伟大的社区。

如果框架能帮助到你,无需捐赠,就给GoFly作者们点个⭐️star吧!让更多人使用,开发者们都找到好工作或快速开发自己项目,企业可以降本增效。

需要框架其他扩展功能如:定时任务、cms、websocket、mqtt等插件请移步到企业版使用。

二、优势简介

  1. 基于优秀成熟框架集成,保证系统可靠性。集成的主要有 Gin、Arco Design 、Mysql 等主流框架技术《我们不生产框架,我们是优秀框架的搬运工》。
  2. 系统已集成开发常用基础功能,开箱即用,快速开始您业务开发,快人一步,比同行节省成本,降本增效首选。
  3. 框架根据app目录下文件成交自动生成路由,无需手动添加,这种生成方式会避免路由重复,也减少手动添加麻烦。
  4. 框架提供其他开发者开发的插件,可快速安装或卸载,让开个资源共享,同意功能无需重复造车,一键安装即可使用。 框架搭建了一键 CRUD 生成前后端代码,建数据库一键生成,节省您的复制粘贴时间,进一步为您节省时间。
  5. 框架自带 API 接口文档管理,接口带有请求 token 等配置,添加接口只需配置路径和数据库或者备注,其部分信息如数据字段,系统自动根据数据库字段补齐,开发配套接口文档尽可能的为您节省一点时间。不需要其他接口文档工具复制粘贴,登录注册等时间。还有一个重点!接口文档可以一键生成接口 CRUD 的代码和通用的操作数据的 CRUD 接口,根据您的业务选择自己写接口代码、一键生成接口代码、不用写和生成代码调用通用接口。让写接口工作节省更多时间。
  6. 前后端分离解耦业务,让前段人员与后端人协调开发,提高项目交付,并且可以开发出功能复杂度高的项目。
  7. 前端用 Vue3+TypeScript 的 UI 框架 Arco Design,好用的 UI 框架前端可以设计出优秀且交互不错的界面,完善的大厂 UI 支持,前端开发效率也很高! 以上只是框架比较明显优势点,还有很多优势等你自己体验,我们从各个开发环节,努力为您节省每一分时间。
  8. 集成操作简单的 ORM 框架,操作数据非常简单,就像使用php的Laravel一样,您可以去文档看看 框架的ROM数据库操作文档 例如下面语句就可以查找一条数据:
 db.Table("users").Fields("uid,name,age").First()
  1. 框架以“大道至简,唯快不破”为思想,在每个细节处理都坚持让“开发”变得简单,即使你是新手也可以跟着开发文档快手上手并能开发出企业级产品。
  2. 我们开源的框架不是阉割版、不留后门、没有任何开发和使用限制、没有任何收费项,框架直接从我们以往开发项目整理出来的,是个纯粹开源项目,不存在使用问题。

三、目录结构

├── app                     # 应用目录
│   ├── admin               # 后台管理应用模块
│   ├── business            # 业务端应用模块
│   ├── common              # 公共应用模块
│   ├── home                # 可以编写平台对应网站
│   ├── wxapp               # 微信小程序模块
│   ├── wxoffi              # 微信公众号模块
│   └── controller.go       # 应用控制器
├── bootstrap               # 工具方法
├── global                  # 全局变量
├── model                   # 数据模型
├── resource                # 静态资源和config配置文件
├── route                   # 路由
├── runtime                 # 运行日志文件
├── tmp                     # 开发是使用fresh热编译 产生临时文件
├── utils                   # 工具包
├── go.mod                  # 依赖包管理工具
├── go.sum         
├── main.go                 # main函数        
└── README.md               # 项目介绍

开发时仅需在app目录下添加你新的需求,app外部文件建议不要改动,除了config配置需要改,其他不要修改, 框架已经为您封装好,你只需在app应用目录书写你的业务,路由、访问权限、跨域、限流、Token验证、ORM等 框架已集成好,开发只需添加新的方法或者新增一个文件即可。

四、快速安装

  1. 首先在GOPATH路径下的src目录下现在放代码的文件夹下载代码解压到项目文件夹中(或者直接git clone 代码到src目录下)。
  2. 再运行服务 go run main.go 或者 编译 fresh (go install github.com/pilu/fresh@latest 安装fresh热编译工具),启动成功如下: 运行启动命令 在浏览器打开安装界面进行安装: 安装界面

注意:前端代码安装设置是安装时同时把前端vue代码安装到开发前端代码目录下,为了防止热编译效率框架不建议把前端代码放到go目录下。

五、在线预览

1.GoFly全栈开发社区了解更多

2.Go快速后台系统开发框架完整代码包下载

3.Go快速后台系统开发文档

4.A端在线预览

5.B端在线预览

6.企业版代码仓在线预览

六、效果图片预览

开源版界面

企业版效果
## 七、安装及部署打包说明 ### 1. 后端代码 #### 安装fresh 热更新-边开发边编译 go install github.com/pilu/fresh@latest

初始化mod

go mod tidy

热编译运行

bee run 或 fresh

打包

go build main.go

打包(此时会打包成Linux上可运行的二进制文件,不带后缀名的文件)

SET GOOS=linux
SET GOARCH=amd64
go build

widows

// 配置环境变量
SET CGO_ENABLED=1
SET GOOS=windows
SET GOARCH=amd64

go build main.go

// 编译命令

编译成Linux环境可执行文件


// 配置参数
SET CGO_ENABLED=0 
SET GOOS=linux 
SET GOARCH=amd64 

go build main.go

// 编译命令

服务器部署

部署是把打包生成的二进制文件(Linux:gofly,windows:gofly.exe)和资源文件resource复制过去即可。

2. 前端端代码

初始化依赖

npm run install 或者 yarn install

如果第一次使用Arco Design Pro install初始化可以报错,如果保存请运行下面命令(安装项目模版的工具):

npm i -g arco-cli

运行

npm run serve 或者  yarn serve

打包

npm run build 或者 yarn build

八、前端代码安装及源码位置

由于框架是前端后端分离,且在Go本地开发使用fresh热编译,Go目录不能用太多文件影响编译时间, 所以我们开发是建议前端代码放在其他位置。在安装界面填写你前端代码放置位置或者手动在Go项目config/settings.yml配置文件中vueobjroot手动配置前端业务端开发路径:

vueobjroot: D:/Project/develop/vue/gofly_base/gofly_business

如果你想要手动安装前端代码,源码在代码包的resource/staticfile/template/vuecode目录下文件夹中,自己复制到开发文件夹下即可。

如果以需要了解更多关于gofl社区框架,也可以移步到GoFly全栈开发社区了解或者下载最新版本。

联系我们

如果使用过程有问题,可以添加GoFly技术客服咨询(微信:goflycn):

Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Go语言快速开发系统框架(Gin),可快速开发企业级应用,go后台管理系统,软件服务、端物联网平台。api文档管理并一键生成api接口代码,一键生成 CRUD前后端代码,路由自动生成, 快速开发是一款基于Go语言的 Gin和 Vue3的Arco Design的快速后台开发框架,二次开发,基于JWT接口验证和Auth验证的权限管理系统,,附件管理系统,天生支持saas架构。 expand collapse
Cancel

Contributors

All

Activities

Load More
can not load any more
Go
1
https://gitee.com/huang_li_shi_admin/GoFlyAdmin.git
git@gitee.com:huang_li_shi_admin/GoFlyAdmin.git
huang_li_shi_admin
GoFlyAdmin
GoFlyAdmin(Go快速开发后台系统框架)
master

Search

53164aa7 5694891 3bd8fe86 5694891