{"repo":"go-kratos/kratos-layout","free":true,"listed":false,"github":"https://github.com/go-kratos/kratos-layout","clone":"git clone https://github.com/go-kratos/kratos-layout.git","description":"A clean and production-ready project template for building Go microservices with Kratos.","language":"Go","stars":493,"topics":["golang","service","layout","kratos","template","project","micorservices","architecture","go","go-project"],"license":"MIT","category":"dev-tools","readme_excerpt":"Kratos Project Template A project template for creating new Kratos services with HTTP and gRPC transports, protobuf-first APIs, Wire dependency injection, OpenAPI generation, and a small CRUD example. Use this repository as a starting point for a new service. The included sample resource is only reference code for API shape, layering, code generation, and testing. Replace it with your own domain model when creating a real project. Create a New Project 1. Copy or generate a repository from this template. 2. Update the Go module path: 3. Replace existing import paths that reference this template module. 4. Rename the command, service metadata, and sample API package to match your service. 5. Replace the sample CRUD resource with your own resource. 6. Regenerate code and verify the project: What Is Included - Kratos HTTP and gRPC server setup. - Protobuf API definitions and generated Go code. - OpenAPI generation. - Wire-based dependency injection. - Layered service , biz , and data packages. - A lightweight in-memory repository for the sample resource. - Unit tests for the service layer. - Server-streaming and bidirectional-streaming examples. Project Layout API Template Practices The sample CRUD API demonstrates common conventions for Kratos projects: - Resource-oriented methods: create, get, list, update, delete. - HTTP annotations with google.api.http . - Required fields with google.api.field behavior . - List requests with page size , page token , filter , and order by . - ","default_branch":null,"files":null,"tree":[],"storefront":"/r/go-kratos","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/go-kratos/kratos-layout/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}