Kratos provides a wealth of sample code/projects for reference
All Examples
- config example of using config to parse configuration files
- apollo exmaple of getting configuration from apollo
- etcd example of service registration on the server side and service registration on the client side using the etcd plug-in.
- nacos example of service registration on the server side and service registration on the client side using the nacos plug-in.
- consul example of service registration on the server side and service registration on the client side using the consul plug-in.
- zookeeper example of service registration on the server side and service registration on the client side using the zookeeper plug-in.
- cors example of cross-domain settings
- gin example of use gin as the router.
- mux example of use mux as the router.
- echo example of use echo as the router.
- static example of static files serving.
- upload example of file upload.
- redirect example of redirect.
- middleware example of use middleware in the router.
- errors example of error response using unified error handling.
- helloworld example of remote calls using http and gRPC.
- traces example of use jaeger for tracing.
- ws example of file WebSocket.
- jwt emxaple of use JWT authentication in HTTP, gRPC.
- zap example of use Zap.
- logrus example of use logrus.
- i18n example of internationalization support.
- header example of header.
- selector example of Selector. Selection by Load Balancing and Filter
- swagger example of use Swagger automaticlly genereate interface documentation and provide online services.
-
blog a simple CRUD project which includes MySQL Redis integration.
-
beer-shop an online shop application, mono-repo microservices demo for kratos.