Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
B

blog-microservices

> 编程语言
Open source

A blog microservices written in Golang, which can be deployed in an Istio-enabled kubernetes cluster.

199 stars0 likes1 views
WebsiteGitHub

About

A blog microservices written in Golang, which can be deployed in an Istio-enabled kubernetes cluster.

blog-microservices

A blog microservices written in Golang, which can be deployed in an Istio-enabled kubernetes cluster. If you’re using this demo, please ★Star this repository to show your interest!

English | 中文

Architecture

Kiali Console

Project Layout

This demo refers to the following project layout:

  • Standard Go Project Layout
  • Go RESTful API Starter Kit (Boilerplate)
  • Kratos Project Template

Full list what has been used

  • gRPC Go implementation of gRPC
  • GORM The fantastic ORM library for Go
  • DTM Go implementation of Distributed Transaction Management Framework
  • Jaeger open source, end-to-end distributed tracing
  • Prometheus Monitoring system
  • Grafana Operational dashboards
  • Kiali The Console for Istio Service Mesh
  • Kubernetes Production-Grade Container Orchestration
  • Istio The leading service mesh

Makefile

Command Description
make init go install protoc-gen-*, wire, migrate and mockgen
make protoc generate *pb.go
make wire generate wire_gen.go
make mock generate mock file
make test go test
make migrate-up migrate up databases
make migrate-down migrate down databases
make migrate-refresh migrate down and up databases
make blog-server start blog server in local
make user-server start user server in local
make post-server start post server in local
make comment-server start comment server in local
make auth-server start auth server in local
make dtm-server start dtm server in local,please see the dtm docs
make docker-build build docker images
make kube-deploy deploy blog, user, post, comment, auth and dtm server in kubernetes cluster
make kube-delete delete all servers in kubernetes cluster
make kube-redeploy redeploy all servers in kubernetes cluster (⚠ not including database servers️)

Development Environment in Local

This is a list of development environment in local for macOS:

  • docker-desktop >= 4.13.1
  • kubernetes >= 1.25.2
  • istioctl >= 1.15.3
  • protobuf >= 21.8
  • go >= 1.19
  • mysql >= 8.0

Install the Docker Desktop,and enable Kubernetes cluster, See the docker docs

bash
# install Go
brew install go
# install MySQL without a root password
brew install mysql
# install Protobuf
brew install protobuf
# install Buf
brew install bufbuild/buf/buf
# install istioctl
brew install istioctl
# ensure you change the context so that kubectl is pointing to docker-desktop
kubectl config use-context docker-desktop
# install and enable istio
istioctl install -y
kubectl label namespace default istio-injection=enabled

Deploy the demo in Kubernetes

bash
# build docker images
make docker-build
# deploy all services
make kube-deploy

Get All Pod Resources:

bash
kubectl get pods -A

Returns:

…

Get All Service Resources:

bash
kubectl get services -A

Returns:

…

Visit the microservice

Install the BloomRPC, select the api/protobuf/blog/v1/blog.proto file and start making requests! No extra steps or configuration needed.

Sign Up:

Create a post:

Issues· 8 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Go

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言