# sponge_examples **Repository Path**: cctvbtx/sponge_examples ## Basic Information - **Project Name**: sponge_examples - **Description**: sponge_examples是使用go开发框架sponge开发项目示例。包括了RESTFUL API 服务示例、gRPC 服务示例、gRPC+HTTP 混合服务示例、gRPC 网关服务示例、订单系统示例、缓存一致性示例、简单的电商项目示例、社区示例等微服务示例。 - **Primary Language**: Go - **License**: MIT - **Default Branch**: main - **Homepage**: https://github.com/zhufuyi/sponge - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2026-01-07 - **Last Updated**: 2026-01-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Sponge Examples Here are some examples of using sponge to develop go projects. [Sponge](https://github.com/zhufuyi/sponge) is a powerful development framework that integrates `code auto generation`, `gin and grpc framework`. It is provides one-stop project development (code generation, development, testing, api documentation, deployment), it greatly improves development efficiency and reduces development difficulty, develop high-quality projects with a "low code approach".
### Examples of creating a service using sponge - [Create **web** service based on **sql** (including CRUD)](https://github.com/zhufuyi/sponge_examples/tree/main/1_web-gin-CRUD) - [Create **grpc** service based on **sql** (including CRUD)](https://github.com/zhufuyi/sponge_examples/tree/main/2_micro-grpc-CRUD) - [Create **web** service based on **protobuf**](https://github.com/zhufuyi/sponge_examples/tree/main/3_web-gin-protobuf) - [Create **grpc** service based on **protobuf** ](https://github.com/zhufuyi/sponge_examples/tree/main/4_micro-grpc-protobuf) - [Create **grpc gateway** service based on **protobuf**](https://github.com/zhufuyi/sponge_examples/tree/main/5_micro-gin-rpc-gateway) - [Create **grpc+http** service based on **protobuf**](https://github.com/zhufuyi/sponge_examples/tree/main/_10_micro-grpc-http-protobuf) - [Build a simple microservice cluster (multi-repo and mono-repo)](https://github.com/zhufuyi/sponge_examples/tree/main/6_micro-cluster) ### Examples of developing a complete project using sponge - [Simple community web backend service](https://github.com/zhufuyi/sponge_examples/tree/main/7_community-single) - [Simple community web service broken down into microservice](https://github.com/zhufuyi/sponge_examples/tree/main/8_community-cluster) ### Sponge+DTM distributed transaction examples - [Service registration and discovery (consul,etcd,nacos)](https://github.com/zhufuyi/sponge_examples/tree/main/_11_sponge-dtm-service-registration-discovery) - [Flash sale](https://github.com/zhufuyi/sponge_examples/tree/main/_12_sponge-dtm-flashSale) - [Cache consistency (redis, mysql)](https://github.com/zhufuyi/sponge_examples/tree/main/_13_sponge-dtm-cache) - [Simple distributed order system](https://github.com/zhufuyi/sponge_examples/tree/main/9_order-grpc-distributed-transaction) - [E-Commerce system](https://github.com/zhufuyi/sponge_examples/tree/main/_14_eshop)