This example of a Ports & Adapters architecture is taken from this blog post: https://blog.allegro.tech/2020/05/hexagonal-architecture-by-example.html The original example code was written in Java.
See infos here: https://github.com/FerdinandStapenhorst/Ports-And-Adapter-Pattern-Example/blob/master/README.md