Back to rankings

thangchung/go-coffeeshop

Go

☕ A practical event-driven microservices demo built with Golang. Nomad, Consul Connect, Vault, and Terraform for deployment

clean-architectureecho-frameworkgolanggrpc-gatewaymicroservicesdddpostgresqlrabbitmqalpinejsconsul-connectnomadterraform
Star Growth
Stars
4.4k
Forks
455
Weekly Growth
Issues
11
2k4k
Jan 2023Mar 2024May 2025Jul 2026
ArtifactsGo Modulesgo get github.com/thangchung/go-coffeeshop
README

go-coffeeshop

An event-driven microservices coffee shop application has been written in Golang and deployed using Nomad, Consul Connect, Vault, and Terraform.

Other versions in .NET/C# can be found at:

Technical stack

CoffeeShop - Choreography Saga

coffeeshop

Services

No. Service URI
1 grpc-gateway http://localhost:5000
2 product service http://localhost:5001
3 counter service http://localhost:5002
4 barista service worker only
5 kitchen service worker only
6 web http://localhost:8888

Starting project

Jump into .devcontainer, then

> make docker-compose

From vscode => Press F1 => Type Simple Browser View => Choose it and enter http://localhost:8888. Enjoy!!!

Screenshots

Home screen

home_screen

Payment screen

payment_screen

Order list screen

order_list_screen

HashiCorp stack deployment

coffeeshop_hashicorp

The details of how to run it can be find at deployment with Nomad, Consult Connect and Vault.

Development

Clean Domain-driven Design

clean_ddd

Generate dependency injection instances with wire

> make wire

Generate code with sqlc

> make sqlc

Debug Apps

Debug golang app in monorepo

Trouble shooting

Development project trouble shooting

Roadmap

  • ✅ Enhance project structure with DDD patterns
  • Add testing
  • Add and integrate with observability libs and tools
  • Add user identity management (authentication and authorization)
  • Add resiliency

Credits

Related repositories
ryanmcdermott/clean-code-javascript

Clean Code concepts adapted for JavaScript

JavaScriptnpmMIT Licensejavascriptprinciples
94.7k12.5k
jasontaylordev/CleanArchitecture

Clean Architecture Solution Template for ASP.NET Core

C#MIT Licenseclean-architecturetemplate
cleanarchitecture.jasontaylor.dev
20.3k4.2k
ardalis/CleanArchitecture

Clean Architecture Solution Template: A proven Clean Architecture Template for ASP.NET Core 10

C#MIT Licenseclean-architecturearchitecture
18.3k3.1k
Sairyss/domain-driven-hexagon

Learn Domain-Driven Design, software architecture, design patterns, best practices. Code examples included

TypeScriptnpmMIT Licensedomain-driven-designhexagonal-architecture
14.8k1.6k
kgrzybek/modular-monolith-with-ddd

Full Modular Monolith application with Domain-Driven Design approach.

C#MIT Licensedddddd-architecture
13.9k2.2k
mehdihadeli/awesome-software-architecture

📚 A curated list of awesome articles, videos, and other resources to learn and practice software architecture, patterns, and principles.

Creative Commons Zero v1.0 Universalarchitectureddd
awesome-architecture.com
11.4k992
dotnet-architecture/eShopOnWeb

Sample ASP.NET Core 8.0 reference application, now community supported: https://github.com/NimblePros/eShopOnWeb

C#MIT Licenseasp-net-coreasp-net-core-mvc
10.7k6k
bxcodec/go-clean-arch

Go (Golang) Clean Architecture based on Reading Uncle Bob's Clean Architecture

GoGo ModulesMIT Licensearchitecturegolang
10.1k1.3k
labs42io/clean-code-typescript

Clean Code concepts adapted for TypeScript

TypeScriptnpmMIT Licenseclean-codetypescript
labs42io.github.io/clean-code-typescript
9.8k1.2k
thangchung/clean-code-dotnet

:bathtub: Clean Code concepts and tools adapted for .NET

C#MIT Licenseawesomeaspnet
7.7k1.1k
evrone/go-clean-template

Clean Architecture template for Golang services

GoGo ModulesMIT Licenseclean-architecturego
7.6k658
igorwojda/android-showcase

💎 Android application following best practices: Kotlin, Coroutines, JetPack, Clean Architecture, Feature Modules, Tests, MVVM, DI, Static Analysis...

KotlinMIT Licensekotlinandroid
6.8k908