How To Structure Your Go App - Full Course [ Hex Arch + Tests ]

How To Structure Your Go App - Full Course [ Hex Arch + Tests ]

94.355 Lượt nghe
How To Structure Your Go App - Full Course [ Hex Arch + Tests ]
Become a Golang Expert With This Hands-On Golang Course 👉 https://kantancoding.io 📚Learning Objectives: Hexagonal Architecture/ Ports & Adapters, Go Programming, gRPC, Docker, Docker Compose, Dependency Injection (DI), Inversion of Control (IoC), Unit Tests, End To End Tests 👨🏽‍💻Code: https://github.com/selikapro/hexArchGoGRPC ⌨️ grpc_entrypoint.sh: https://github.com/selikapro/hexArchGoGRPC/blob/main/grpc_entrypoint.sh ☠️ Course Contents ☠️ 🔎 (0:00:00​) Intro 🔎 (0:02:20​) What Is Hex Arch? 🔎 (0:08:57​) Install Go 🔎 (0:12:29​) Domain Layer 🔎 (0:22:50​) Application Layer 🔎 (0:31:05​) Framework Layer (Database) 🔎 (0:46:25​) Framework Layer (gRPC) 🔎 (0:48:32​) What Is gRPC? 🔎 (0:51:20​) gRPC/Protoc - Install & Setup 🔎 (1:02:10​) .proto files 🔎 (1:17:25​) Framework Layer (gRPC) - Continued 🔎 (1:35:50​) Bringing It All Together (main.go) 🔎 (1:44:06​) Dependency Injection (DI) 🔎 (1:45:32​) Visualizing Our Hex Arch Implementation 🔎 (1:50:49​) What Is A Docker Container & Docker Compose? 🔎 (1:54:46​) Install Docker 🔎 (1:56:00​) Create Dockerfile 🔎 (2:01:32​) Create Entrypoint File 🔎 (2:04:36​) Create Docker Compose File 🔎 (2:15:56​) Create SQL Script For Tests Table 🔎 (2:17:01​) Add Unit Tests 🔎 (2:22:02​) Add End To End Tests 🔎 (2:37:07​) Running Tests Using Docker Compose 🔎 (2:43:39​) Ending Notes 🔎 (2:44:50​) Outro 📚🤓 References: https://alistair.cockburn.us/hexagonal-architecture/ http://www.dossier-andreas.net/software_architecture/ports_and_adapters.html https://fideloper.com/hexagonal-architecture https://blog.gougousis.net/the-not-so-thin-line-between-di-dip-and-ioc/ https://dzone.com/articles/hexagonal-architecture-in-java-2 https://en.wikipedia.org/wiki/Hexagonal_architecture_(software) https://www.youtube.com/watch?v=vKbVrsMnhDc https://netflixtechblog.com/ready-for-changes-with-hexagonal-architecture-b315ec967749 https://speakerdeck.com/fideloper/hexagonal-architecture Join the Discord to talk to me and the rest of the community! https://discord.gg/NU39rvkUXa