An example template
This boilerplate serves as a solid foundation for building robust, scalable, and maintainable microservice applications using the Go programming language.
Microservice architecture enhances scalability and flexibility in modern applications. A microservice boilerplate is a standardized template that streamlines development by providing essential components like directory structures, build tools, testing frameworks, and logging integrations. Using a boilerplate allows developers to focus on business logic, ensuring consistency and efficiency across services. This approach accelerates development, enforces standards, and reduces errors, facilitating robust and scalable software solutions.
[!WARNING] Pet and owner were shown in the project only as an example.
How to use are Swagger, Gorm and Gorm Gen mentioned in the boilerplate.
When go-air used for hot reload on separate applications in same time, it uses too much system features like memory. What's more, you may not even get any positive results from the work of the containers when the number of container is increased.
Run the app as development mode
make dev
Run the app as production mode
make prod
Generate the swagger document
make swagger
Gorm Gen
make gorm
Generate client and server codes from proto
make proto