The guide to understand Hexagonal Architecture (a.k.a Ports and Adapters) in JavaScript.
The guide to understand Hexagonal Architecture (a.k.a Ports and Adapters) in JavaScript.
Click here to see my publication on my blog →
ℹ️ This publication is being maintained right now. This means that some topics may be out of date.
This is a sample repository for my "Hexagonal Architecture Distilled in JavaScript" publication.
The code writing style was motivated by the familiarity of JavaScript programmers.
The design was as simple as possible in order not to obscure the practical examples of Hexagonal Architecture concepts.
I suggest that the consumer of this content does not get attached to peripheral concepts (Decorator design pattern, etc). Focus on Ports and Adapters!
The diagram below is designed to be familiar with the C4 pattern component diagram.
npm run start
npm run docker:up
npm run docker:down
npm run test:unit
npm run test:integration
npm run test
npm run test:create-a-post
and copy the "_id" returned propertynpm run test:get-a-specific-post
npm run test:edit-a-specific-post
npm run test:list-all-posts