https://github.com/jzero-io/jzero
扩展 go-zero 框架,能通过内置模板或外部模块一键创建项目,并基于 proto/api/sql 等可描述文件生成服务端/客户端/数据库代码,开箱即用并高度可定制化.
https://github.com/jzero-io/jzero
api cloud-native cobra code-generation go go-zero grpc grpc-gateway microservice proto sqlbuilder validator
Last synced: 4 days ago
JSON representation
扩展 go-zero 框架,能通过内置模板或外部模块一键创建项目,并基于 proto/api/sql 等可描述文件生成服务端/客户端/数据库代码,开箱即用并高度可定制化.
- Host: GitHub
- URL: https://github.com/jzero-io/jzero
- Owner: jzero-io
- License: mit
- Created: 2024-04-07T02:07:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-05T06:53:37.000Z (9 days ago)
- Last Synced: 2025-05-05T07:41:30.340Z (9 days ago)
- Topics: api, cloud-native, cobra, code-generation, go, go-zero, grpc, grpc-gateway, microservice, proto, sqlbuilder, validator
- Language: Go
- Homepage: https://docs.jzero.io
- Size: 17.9 MB
- Stars: 96
- Watchers: 6
- Forks: 9
- Open Issues: 19
-
Metadata Files:
- Readme: README-EN.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-zero - jzero - 基于 go-zero 框架定制的企业级后端代码框架脚手架, 同时支持使用 go-zero rpc, gateway, api 特性, 支持多 proto 多 service, 多人开发友好. 并能完全同步 go-zero 新特性. [文档](https://jzero.jaronnie.com) (Libraries that use [go-zero](https://github.com/tal-tech/go-zero))
README
# jzero
**Free your hands and have more time to play games**
[](https://github.com/jzero-io/jzero/actions?query=workflow%3Ajzero-ci)
[](https://github.com/jzero-io/jzero/releases/latest)
[](https://github.com/jzero-io/jzero/pkgs/container/jzero)
[](https://github.com/marketplace/actions/jzero-action)
![]()
[中文](README.md) | ENGLISH
## Introduction
Create a project through a template and generate Server/Client/Model code based on proto/api/sql files.
It has the following features:
* Based on the [go-zero](https://go-zero.dev) framework but not limited to the go-zero framework. In theory, it can access any framework based on template features
* Optimize the existing pain points of the go-zero framework and expand new features, fully compatible with the go-zero framework
* Generate code through minimalist instructions based on configuration files
* Maintain commonly used development templates and generate projects that meet enterprise-level code specifications with one click
For more details please see: https://docs.jzero.io/en. The English documentation is incomplete and is still being supplemented
## Install
```shell
go install github.com/jzero-io/jzero@latest
# check tools
jzero check
```### docker
```shell
docker pull ghcr.io/jzero-io/jzero:latest
```## Quick start
```shell
# new project
jzero new your_project
# generate server code
cd your_project
jzero gen
# download dependencies
go mod tidy
# generate swagger json
jzero gen swagger
# generate http sdk
jzero gen sdk
# run server
go run main.go server
```### docker
```shell
docker run --rm -v ${PWD}:/app ghcr.io/jzero-io/jzero:latest new your_project
cd your_project
docker run --rm -v ${PWD}:/app ghcr.io/jzero-io/jzero:latest gen
# download dependencies
go mod tidy
# generate swagger json
docker run --rm -v ${PWD}:/app ghcr.io/jzero-io/jzero:latest gen swagger
# generate http sdk
docker run --rm -v ${PWD}:/app ghcr.io/jzero-io/jzero:latest gen sdk
# 运行服务端
go run main.go server
```For more examples code please see: https://github.com/jzero-io/examples
Project Practice please see:
* api frame: https://docs.jzero.io/project/api.html
* gateway frame: https://docs.jzero.io/project/gateway.html## Roadmap
please see: https://docs.jzero.io/roadmap/base.html
## Contributors
[CONTRIBUTING](CONTRIBUTING.md)
## Acknowledgements
This project is supported by JetBrains Open Source development License.
[](https://www.jetbrains.com/?from=jzero)
## Donate
[](https://oss.jaronnie.com/2021723027876_.pic.jpg)
[](https://oss.jaronnie.com/2031723027877_.pic.jpg)## Stargazers over time
[](https://star-history.com/#jzero-io/jzero&Date)
## Contact me
![]()