基于大仓模式的微服务框架,集成常用组件和规范化、自动化代码生成。支持直接部署及容器化k8s部署
本项目用到了Go企业开发的大部分核心技能点,见下图:
更多请参考:shiqinfeng1/gocollect
架构解析见:gomono-layout 架构 & 能力说明
-
服务器能访问外网
-
操作系统:CentOS Linux 8.x (64-bit) / ubuntu Linux 22.04 (64-bit)
快速部署请参考:gomono-layout 部署指南
gomono-layout 项目还提供了更详细的部署文档,请参考:手把手教你部署gomono-layout系统
-
安装kratos工具
go install github.com/shiqinfeng1/gomono-layout/cmd/gomonoctl@latest
-
基于当前模版创建一个项目仓库
创建项目名称为helloworld,服务名称为user的项目:
$gomonoctl newservice helloworld --service user
-
在项目名称为helloworld仓库中添加一个新的服务
$gomonoctl newservice helloworld --service order
如果你需要重新编译gomono-layout项目,可以执行以下 2 步:
-
首次使用时,先安装工具
cd gomono-layout make tools
-
编译
cd gomono-layout make all
构建后的二进制文件保存在 _output/platforms/linux/amd64/
目录下。
欢迎贡献代码,贡献流程可以参考 developer's documentation。
You are encouraged to communicate most things via GitHub issues or pull requests.
gomono-layout is licensed under the MIT. See LICENSE for the full license text.