You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Code generation supports multiple types of code repositories, you can choose to use `monolithic application single repository (monolith)`, `microservice multi-repository (multi-repo)`, or `microservice single repository (mono-repo)` according to your project needs.
4
-
- Added automated testing scripts for code generation commands.
5
-
- Based on protobuf to generate web services, the generated template code and documentation must meet the following conditions:
6
-
- rpc cannot be set as stream type.
7
-
- rpc must set http related information (router and method).
8
-
- RPC stream based on protobuf supports generating corresponding template code and client testing code.
9
-
- The generated code based on protobuf supports some common special types, such as Empty, Any, Timestamp, etc.
Copy file name to clipboardExpand all lines: README.md
+13-35Lines changed: 13 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@
15
15
16
16
</div>
17
17
18
-
**Sponge** is a powerful development framework that integrates `automatic code generation`, `Gin and GRPC`. Sponge has a rich set of code generation commands, and the generated different functional codes can be combined into a complete service (similar to how artificially broken sponge cells can automatically reassemble into a new complete sponge). From development, testing, API documentation to deployment, one-stop project development greatly improves development efficiency and reduces development difficulty, you can also use the go language to develop projects using the "low-code way".
18
+
**Sponge** is a powerful development framework that integrates `automatic code generation`, `Gin and GRPC`. Sponge has a rich set of code generation commands, and the generated different functional codes can be combined into a complete service (similar to how artificially broken sponge cells can automatically reassemble into a new complete sponge). From development, testing, API documentation to deployment, one-stop project development greatly improves development efficiency and reduces development difficulty, implementation of "low-code way" development projects.
19
19
20
20
<br>
21
21
@@ -27,14 +27,6 @@ If you develop generic web or microservices, just focus on the three core parts
27
27
28
28
### Sponge Generates the Code Framework
29
29
30
-
Sponge generated service code supports two types of code repositories:
31
-
32
-
1.**Monolithic application single repository (monolith) or microservice multi-repository (multi-repo)**: Each service code has its own Git repository. Even if all services are placed in the same Git repository, the code between services cannot be reused. This is the default type generated.
33
-
34
-
2.**Microservice single repository (mono-repo)**: All services are in the same Git repository, and the code between different services can be reused.
35
-
36
-
<br>
37
-
38
30
Sponge is mainly based on `SQL` and `Protobuf` two ways to generate code, each way has to generate code for different functions. `SQL` supports databases **mysql**, **mongodb**, **postgresql**, **tidb**, **sqlite**.
39
31
40
32
#### Generate Code Framework
@@ -53,19 +45,7 @@ Sponge is mainly based on `SQL` and `Protobuf` two ways to generate code, each w
53
45
54
46
<br>
55
47
56
-
#### Generate Service Code for Egg Model
57
-
58
-
The sponge code generation process strips away the business logic and non-business logic of the two major parts of the code. The code generation function of Sponge can be seen as a hen, and the service code generated by sponge can be seen as eggs. Currently, it supports the generation of 5 common types of service code, Take the generated web service backend code as an example, egg model profiling diagram:
In addition to the egg model of web service backend code, there are egg models of grpc service code and grpc gateway service code, [click here to view](https://go-sponge.com/learn-about-sponge?id=%f0%9f%8f%b7egg-model-for-generate-service-code).
65
-
66
-
<br>
67
-
68
-
### Services framework
48
+
### Microservice framework
69
49
70
50
Sponge is essentially a microservice framework that includes code generation capabilities. The microservice framework is shown in the following figure, which is a typical microservice hierarchical structure, with high performance, high scalability, contains commonly used service governance features, you can easily replace or add their own service governance features.
71
51
@@ -164,25 +144,23 @@ Detailed instructions for operating, configuring, and deploying a project using
0 commit comments