1 Star 0 Fork 29

前端代码工具库 / GoFlyAdmin(Go开源框架后台管理系统)

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
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吧!让更多人使用,让Go火起来,大家都好找工作,企业可以降低成本,为企业个人降本增效!

二、优势简介

  1. 基于优秀成熟框架集成,保证系统可靠性。集成的主要有 Gin、Arco Design 、Mysql 等主流框架技术。

  2. 系统已集成开发常用基础功能,开箱即用,快速开始您业务开发,快人一步,比同行节省成本,降本增效首选。

  3. 框架提供其他开发者开发的插件,可快速安装或卸载,让开个资源共享,同意功能无需重复造车,一键安装即可使用。 框架搭建了一键 CRUD 生成前后端代码,建数据库一键生成,节省您的复制粘贴时间,进一步为您节省时间。

  4. 框架自带 API 接口文档管理,接口带有请求 token 等配置,添加接口只需配置路径和数据库或者备注,其部分信息如数据字段,系统自动根据数据库字段补齐,开发配套接口文档尽可能的为您节省一点时间。不需要其他接口文档工具复制粘贴,登录注册等时间。还有一个重点!接口文档可以一键生成接口 CRUD 的代码和通用的操作数据的 CRUD 接口,根据您的业务选择自己写接口代码、一键生成接口代码、不用写和生成代码调用通用接口。让写接口工作节省更多时间。

  5. 前后端分离解耦业务,让前段人员与后端人协调开发,提高项目交付,并且可以开发出功能复杂度高的项目。

  6. 前端用 Vue3+TypeScript 的 UI 框架 Arco Design,好用的 UI 框架前端可以设计出优秀且交互不错的界面,完善的大厂 UI 支持,前端开发效率也很高! 以上只是框架比较明显优势点,还有很多优势等你自己体验,我们从各个开发环节,努力为您节省每一分时间。

  7. 集成操作简单的 ORM 框架,操作数据非常简单,就像使用php的Laravel一样,您可以去文档看看 框架的ROM数据库操作文档 例如下面语句就可以查找一条数据:

 db.Table("users").Fields("uid,name,age").First()

三、目录结构

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

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

四、快速安装

在线项目根目录下运行服务,启动成功如下: 运行启动命令 在浏览器打开安装界面进行安装: 安装界面

五、在线预览

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

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

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

4.A端在线预览

5.B端在线预览

六、效果图片预览

1.登录 登录 2.统计页 统计页 3.角色管理-auth权限  角色管理-auth权限 4.数据中心-数据字典 数据中心-数据字典 5. 数据中心-附件管理 附件管理列表 附件管理器 6.数据中心-配置 配置 7.微信业务 微信菜单 8.api接口管理 api接口管理列表及测试接口 api接口管理添加接口 9.1 代码一键生成后端CRUD和前端代码 代码一键生成后端CRUD和前端代码列表 代码一键生成后端CRUD和前端代码添加 9.12 代码生成示例 生成列表 生成添加表单 生成添加表单-文本编辑器

七、GoFly SAAS开始开发后台系统-服务端

版本:v1.1.0

安装fresh 热更新-边开发边编译

go install github.com/pilu/fresh@latest

#请修改fresh配置runner.conf.sample中的 
ignored:           assets, tmp, web
添加 web 让他不要监听前端开发更新

初始化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

// 编译命令

八、前端代码

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

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

所以如果您使用GoFly快速框架开发项目,也可以移步到GoFly全栈开发社区下载最新版本

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.

简介

GoFly中后台框架永久开源可商用,能快速搭建应用,框架插逐步完善中。api文档管理并一键生成api接口代码,一键生成 CRUD前后端代码, 快速开发是一款基于Go语言的 Gin和 Vue3的Arco Design的快速后台开发框架,二次开发,基于JWT接口验证和Auth验证的权限管理系统,,附件管理系统,天生支持saas架构。为热爱Go开发者服务,不套路如有请即时反馈,初心是让开发者用得舒服。 展开 收起
Go
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Go
1
https://gitee.com/tomxiang/GoFlyAdmin.git
git@gitee.com:tomxiang/GoFlyAdmin.git
tomxiang
GoFlyAdmin
GoFlyAdmin(Go开源框架后台管理系统)
master

搜索帮助