Skip to content

jzero-io/jzero

Repository files navigation

jzero

Build Status GitHub release GitHub package version Endpoint Badge Ask DeepWiki

English | 简体中文

Introduction

jzero is a framework developed based on the go-zero framework and go-zero/goctl tool. It can initialize api/gateway/rpc projects with a single command.

Automatically generate server and client framework code based on descriptive files (api/proto/sql). With built-in jzero-skills, AI can generate business logic code that follows best practices, reducing development cognitive load and freeing your hands!

Key features:

  • Flexible control of jzero configurations through configuration files/command-line arguments/environment variables, simple commands to generate code, AI-friendly
  • Support generating code based on git changed files, support generating code for specified descriptive files or ignoring specified descriptive files, improving code generation efficiency for large projects
  • Built-in common development templates with enhanced template features, support for custom templates, building exclusive enterprise internal code templates, greatly reducing development costs

For more details, please visit: https://docs.jzero.io

Design Philosophy

  • Developer Experience: Provide a simple, easy-to-use, production-ready solution to enhance developer experience
  • Template Driven: All code generation is based on template rendering, default generation follows best practices, and supports custom template content
  • Ecosystem Compatibility: Does not modify go-zero and go-zero/goctl, maintains ecosystem compatibility, while solving existing pain points and extending new features
  • Team Development: Team development friendly through module layering and plugin design
  • Interface Design: No dependency on specific databases/caches/configuration centers and other infrastructure, choose freely according to actual needs

For more details, please visit: https://docs.jzero.io

Quick Start

# Install jzero
go install github.com/jzero-io/jzero/cmd/jzero@latest
# One-click install required tools
jzero check
# One-click create project
jzero new your_project
cd your_project
# Download dependencies
go mod tidy
# Start server
go run main.go server
# Access swagger ui
http://localhost:8001/swagger

docker

# One-click create project
docker run --rm -v ${PWD}:/app ghcr.io/jzero-io/jzero:latest new your_project
cd your_project
# Download dependencies
go mod tidy
# Start server
go run main.go server
# Access swagger ui
http://localhost:8001/swagger

For more example code, please visit: https://github.com/jzero-io/examples

Ecosystem

For more ecosystem, please visit: https://docs.jzero.io/ecosystem

Contributors

Contribute

Contribution Leaderboard

Stargazers over time

Star History Chart

Disclaimer

jzero is released under the MIT License and is provided completely free of charge. The authors and contributors assume no liability for any direct or indirect consequences arising from the use of this software, including but not limited to performance degradation, data loss, service interruptions, or any other type of damage.

No Warranty: This software comes with no express or implied warranties, including but not limited to fitness for a particular purpose, non-infringement, merchantability, and reliability.

User Responsibility: By using this software, you understand and agree to assume all risks and responsibilities associated with its use.

About

Automatically generate server and client framework code based on descriptive files (proto/api/sql), while using built-in jzero-skills to empower AI to generate production-ready business code adhering to best practices.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors