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
- 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
# 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# 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/swaggerFor more example code, please visit: https://github.com/jzero-io/examples
- jzero-intellij (jzero's goland plugin): https://github.com/jzero-io/jzero-intellij
- jzero-admin (Admin system based on jzero): https://github.com/jzero-io/jzero-admin
For more ecosystem, please visit: https://docs.jzero.io/ecosystem
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.
