|
1 | 1 | --- |
2 | 2 | home: false |
3 | 3 | icon: fluent:home-heart-20-filled |
4 | | -title: 首页 |
| 4 | +title: Home |
5 | 5 | --- |
6 | 6 |
|
7 | 7 | <div style="text-align: center;"> |
8 | 8 | <img src="https://oss.jaronnie.com/jzero.svg" style="width: 33%;" alt=""/> |
9 | 9 | </div> |
10 | 10 |
|
11 | | -## 简介 |
| 11 | +## Introduction |
12 | 12 |
|
13 | | -基于 [go-zero框架](https://github.com/zeromicro/go-zero) 以及 [go-zero/goctl工具](https://github.com/zeromicro/go-zero/tree/master/tools/goctl) 开发的 [jzero](https://github.com/jzero-io/jzero) 框架, 可一键初始化 api/gateway/rpc 项目。 |
| 13 | +**jzero** is a framework developed based on the [go-zero framework](https://github.com/zeromicro/go-zero) and [go-zero/goctl tools](https://github.com/zeromicro/go-zero/tree/master/tools/goctl). It enables one-click initialization of api/gateway/rpc projects. |
14 | 14 |
|
15 | | -基于可描述文件(**api/proto/sql**)自动生成**服务端和客户端**框架代码, 基于内置的 jzero-skills 让 AI 生成符合最佳实践的业务逻辑代码,降低开发心智, 解放双手! |
| 15 | +Based on describable files (**api/proto/sql**), it automatically generates **server-side and client-side** framework code. Combined with built-in jzero-skills, it empowers AI to generate business logic code that follows best practices, reducing development cognitive load and freeing your hands! |
16 | 16 |
|
17 | | -具备以下特点: |
| 17 | +Key features include: |
18 | 18 |
|
19 | | -* 支持通过**配置文件/命令行参数/环境变量**组合的方式灵活控制 jzero 的各项配置, 极简指令生成代码, ai 友好 |
20 | | -* 支持基于 **git 对改动文件**生成代码, 支持对**指定描述文件**生成代码或**忽略指定描述文件**生成代码, 提升大型项目代码生成效率 |
21 | | -* 内置常用开发模板并增强模板特性, 支持**自定义模板**, 构建专属企业内部代码模板, 极大降低开发成本 |
22 | | -* 支持**插件化架构**, 功能模块可作为独立插件动态加载, 支持插件创建、编译和卸载, 完美适配团队协作和模块解耦 |
| 19 | +* Supports flexible control of jzero configurations through combinations of **configuration files/command-line parameters/environment variables**, with minimal commands to generate code, AI-friendly |
| 20 | +* Supports generating code based on **git-changed files** or specific descriptor files, or ignoring specific descriptor files, improving code generation efficiency for large projects |
| 21 | +* Built-in common development templates with enhanced template features, supports **custom templates** to build proprietary enterprise code templates, significantly reducing development costs |
| 22 | +* Supports **plugin architecture**, where functional modules can be dynamically loaded as independent plugins, supporting plugin creation, compilation, and uninstallation, perfectly adapted for team collaboration and module decoupling |
23 | 23 |
|
24 | | -更多详情请参阅:[https://docs.jzero.io](https://docs.jzero.io) |
| 24 | +For more details, please visit: [https://docs.jzero.io](https://docs.jzero.io) |
25 | 25 |
|
26 | | -## 设计理念 |
| 26 | +## Design Philosophy |
27 | 27 |
|
28 | | -* **开发体验**: 提供简单好用的一站式生产可用的解决方案, 提升开发体验感 |
29 | | -* **模板驱动**: 所有代码生成均基于模板渲染, 默认生成即最佳实践, 且支持自定义模板内容 |
30 | | -* **生态兼容**: 不修改 go-zero 和 go-zero/goctl, 保持生态兼容, 同时解决已有的痛点问题并扩展新的功能 |
31 | | -* **团队开发**: 通过模块**分层**, **插件**设计, 团队开发友好 |
32 | | -* **接口设计**: 不依赖特定数据库/缓存/配置中心等基础设施, 根据实际需求自由选择 |
| 28 | +* **Developer Experience**: Provides a simple, easy-to-use, one-stop production-ready solution that enhances the development experience |
| 29 | +* **Template-Driven**: All code generation is based on template rendering, with default generation following best practices, and supports custom template content |
| 30 | +* **Ecosystem Compatibility**: Does not modify go-zero and go-zero/goctl, maintains ecosystem compatibility while addressing existing pain points and extending new features |
| 31 | +* **Team Development**: Through module **layering** and **plugin** design, it's friendly to team development |
| 32 | +* **Interface Design**: Does not depend on specific databases/cache/config centers and other infrastructure, allowing free choice based on actual needs |
33 | 33 |
|
34 | | -## 快速开始 |
| 34 | +## Quick Start |
35 | 35 |
|
36 | 36 | ::: code-tabs#shell |
37 | 37 | @tab jzero cli |
38 | 38 |
|
39 | 39 | ```bash |
40 | | -# 安装 jzero |
| 40 | +# Install jzero |
41 | 41 | go install github.com/jzero-io/jzero/cmd/jzero@latest |
42 | | -# 一键安装所需的工具 |
| 42 | +# One-click install required tools |
43 | 43 | jzero check |
44 | | -# 一键创建项目 |
| 44 | +# One-click create project |
45 | 45 | jzero new your_project |
46 | 46 | cd your_project |
47 | | -# 下载依赖 |
| 47 | +# Download dependencies |
48 | 48 | go mod tidy |
49 | | -# 启动服务端程序 |
| 49 | +# Start server |
50 | 50 | go run main.go server |
51 | | -# 访问 swagger ui |
| 51 | +# Visit swagger ui |
52 | 52 | http://localhost:8001/swagger |
53 | 53 | ``` |
54 | 54 |
|
55 | 55 | @tab jzero Docker |
56 | 56 |
|
57 | 57 | ```bash |
58 | | -# 一键创建项目 |
| 58 | +# One-click create project |
59 | 59 | docker run --rm -v ${PWD}:/app ghcr.io/jzero-io/jzero:latest new your_project |
60 | 60 | cd your_project |
61 | | -# 下载依赖 |
| 61 | +# Download dependencies |
62 | 62 | go mod tidy |
63 | | -# 启动服务端程序 |
| 63 | +# Start server |
64 | 64 | go run main.go server |
65 | | -# 访问 swagger ui |
| 65 | +# Visit swagger ui |
66 | 66 | http://localhost:8001/swagger |
67 | 67 | ``` |
68 | 68 | ::: |
69 | | - |
70 | | - |
71 | | - |
0 commit comments