Justified Code/Clean Architecture Pattern Hands-On
  • Free

Clean Architecture Pattern Hands-On

  • Course
  • 21 Lessons

Business logic should not depend on data stores, message brokers or UIs. That is how you avoid technology lock-in.

This course builds loosely coupled components you can test on their own, covering folder structure, core domain logic (anemic vs. rich), use case orchestration, and gateways that implement the core interfaces.

Contents

Module 1 - Code Structure

Component Architecture
Folders and Layers
Preview

Module 2 - Rich Domains

Use Case
Preview
Stupid Domains
Enriching The Domains

Module 3 - Application Layer

Request and Response Models
Database Gateway Interface
Messaging Gateway Interface
Ordering Service
The Heart Of The System

Module 4 - Unit Tests In Isolation

Order Item Tests
Order Tests
Ordering Service Tests

Module 5 - Gateways

Data Layer
Messaging Layer
Flow Of Control

Module 6 - Final Thoughts

Summary
Preview

Bonus

Setup Demo
depedency_inversion_code.zip
docker-compose.yml
postgres_db.sql