Skip to content

Commit 670b73b

Browse files
committed
migrating examples files
1 parent 3d7e8e1 commit 670b73b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+28
-617
lines changed

.github/RELEASE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
- Add generate cache code command and UI interface.
44
- Convert swagger.json 64-bit fields type string to integer.
55
- Uniform json name style for camel case.
6-
- convert rpc code to http code.
6+
- Convert rpc code to http code.
77
- Update documentation.

README.md

+6-29
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
[![Go Reference](https://pkg.go.dev/badge/github.com/zhufuyi/sponge.svg)](https://pkg.go.dev/github.com/zhufuyi/sponge)
1212
[![Go](https://github.com/zhufuyi/sponge/workflows/Go/badge.svg?branch=main)](https://github.com/zhufuyi/sponge/actions)
1313
[![License: MIT](https://img.shields.io/github/license/zhufuyi/sponge)](https://img.shields.io/github/license/zhufuyi/sponge)
14-
[![Join the chat at https://gitter.im/zhufuyi/sponge](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/zhufuyi/sponge?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
1514

1615
</div>
1716

@@ -80,36 +79,14 @@ Visit `http://localhost:24631` in your browser, generate code by manipulating it
8079

8180
<br>
8281

83-
Example of sql based web project code generation.
84-
85-
<p align="center">
86-
<img width="1500px" src="https://raw.githubusercontent.com/zhufuyi/sponge/main/assets/web-http-en.gif">
87-
</p>
88-
89-
After downloading the web project code, execute the command to start the service.
90-
91-
```bash
92-
# update swagger
93-
make docs
94-
95-
# build and run
96-
make run
97-
```
98-
99-
<br>
100-
101-
💡 If you don't want to use the UI interface, you can use the sponge command line to generate code, there is a wealth of examples in the command line helper information, and some of the code generation commands are more convenient than using the UI interface.
102-
103-
<br>
104-
10582
### Examples of use
10683

107-
- [Generate the complete web service project code](https://github.com/zhufuyi/sponge/tree/main/examples/1_web-gin-CRUD)
108-
- [Generate generic web service project code](https://github.com/zhufuyi/sponge/tree/main/examples/2_web-gin-protobuf)
109-
- [Generate complete microservice(gRPC) project code](https://github.com/zhufuyi/sponge/tree/main/examples/3_micro-grpc-CRUD)
110-
- [Generates generic microservice(gRPC) project code](https://github.com/zhufuyi/sponge/tree/main/examples/4_micro-grpc-protobuf)
111-
- [Generate rpc gateway service project code](https://github.com/zhufuyi/sponge/tree/main/examples/5_micro-gin-rpc-gateway)
112-
- [Generate microservice cluster project code](https://github.com/zhufuyi/sponge/tree/main/examples/6_micro-cluster)
84+
- [1_web-gin-CRUD](https://github.com/zhufuyi/sponge_examples/tree/main/1_web-gin-CRUD)
85+
- [2_web-gin-protobuf](https://github.com/zhufuyi/sponge_examples/tree/main/2_web-gin-protobuf)
86+
- [3_micro-grpc-CRUD](https://github.com/zhufuyi/sponge_examples/tree/main/3_micro-grpc-CRUD)
87+
- [4_micro-grpc-protobuf](https://github.com/zhufuyi/sponge_examples/tree/main/4_micro-grpc-protobuf)
88+
- [5_micro-gin-rpc-gateway](https://github.com/zhufuyi/sponge_examples/tree/main/5_micro-gin-rpc-gateway)
89+
- [6_micro-cluster](https://github.com/zhufuyi/sponge_examples/tree/main/6_micro-cluster)
11390

11491
<br>
11592

-68.8 KB
Binary file not shown.

assets/examples/en_micro-cluster.png

-131 KB
Binary file not shown.

assets/examples/en_micro-rpc-cli.png

-65.3 KB
Binary file not shown.
-95.3 KB
Binary file not shown.
-113 KB
Binary file not shown.
-86.9 KB
Binary file not shown.
-86.9 KB
Binary file not shown.
-87 KB
Binary file not shown.

assets/examples/en_micro-rpc-pb.png

-86.6 KB
Binary file not shown.
-82.1 KB
Binary file not shown.

assets/examples/en_micro-rpc.png

-94.5 KB
Binary file not shown.
-69.3 KB
Binary file not shown.
-52.9 KB
Binary file not shown.
-67.2 KB
Binary file not shown.

assets/examples/en_web-http-pb.png

-104 KB
Binary file not shown.
-98.3 KB
Binary file not shown.

assets/examples/en_web-http.png

-95 KB
Binary file not shown.
Binary file not shown.
-48.8 KB
Binary file not shown.

assets/examples/micro-rpc-pb-test.png

-104 KB
Binary file not shown.

assets/examples/micro-rpc-test.png

-364 KB
Binary file not shown.

assets/readme-cn.md

+7-29
Original file line numberDiff line numberDiff line change
@@ -61,25 +61,14 @@ sponge run
6161

6262
<br>
6363

64-
生成web项目代码示例:
65-
66-
<p align="center">
67-
<img width="1500px" src="https://raw.githubusercontent.com/zhufuyi/sponge/main/assets/web-http.gif">
68-
</p>
69-
70-
下载web项目代码后,执行命令启动服务:
71-
72-
```bash
73-
# 更新swagger文档
74-
make docs
75-
76-
# 编译和运行服务
77-
make run
78-
```
79-
80-
<br>
64+
### 使用示例
8165

82-
💡 如果不想使用ui界面,可以使用sponge命令行生成代码,命令行帮助信息里面有丰富的示例,有一些生成代码命令比使用UI界面更便捷。
66+
- [1_web-gin-CRUD](https://www.bilibili.com/read/cv23018269)
67+
- [2_web-gin-protobuf](https://www.bilibili.com/read/cv23040234)
68+
- [3_micro-grpc-CRUD](https://www.bilibili.com/read/cv23064432)
69+
- [4_micro-grpc-protobuf](https://www.bilibili.com/read/cv23099236)
70+
- [5_micro-gin-rpc-gateway](https://www.bilibili.com/read/cv23189890)
71+
- [6_micro-cluster](https://www.bilibili.com/read/cv23255594)
8372

8473
<br>
8574

@@ -89,17 +78,6 @@ make run
8978

9079
<br>
9180

92-
### 使用示例
93-
94-
- [生成完整的web服务项目代码](https://www.bilibili.com/read/cv23018269)
95-
- [生成通用的web服务项目代码](https://www.bilibili.com/read/cv23040234)
96-
- [生成完整的微服务(gRPC)项目代码](https://www.bilibili.com/read/cv23064432)
97-
- [生成通用的微服务(gRPC)项目代码](https://www.bilibili.com/read/cv23099236)
98-
- [生成rpc网关服务项目代码](https://www.bilibili.com/read/cv23189890)
99-
- [生成微服务集群项目代码](https://www.bilibili.com/read/cv23255594)
100-
101-
<br>
102-
10381
### 视频介绍
10482

10583
- [01 sponge的形成过程](https://www.bilibili.com/video/BV1s14y1F7Fz/)

assets/web-http-en.gif

-1.32 MB
Binary file not shown.

assets/web-http.gif

-542 KB
Binary file not shown.

examples/1_web-gin-CRUD/README.md

-50
This file was deleted.
-101 KB
Binary file not shown.

examples/2_web-gin-protobuf/README.md

-66
This file was deleted.
-274 KB
Binary file not shown.

examples/3_micro-grpc-CRUD/README.md

-50
This file was deleted.
-303 KB
Binary file not shown.

examples/4_micro-grpc-protobuf/README.md

-57
This file was deleted.
Binary file not shown.

examples/5_micro-gin-rpc-gateway/README.md

-47
This file was deleted.
Binary file not shown.

0 commit comments

Comments
 (0)