nestjs-hexagonal-example
nestjs-hexagonal-example copied to clipboard
Building a hexagonal architecture (port-adapter) services in nestjs, this project is open source, with explaination and example.
NestJS Hexagonal Architecture Example (Port Adapter)
- MIT License
What is Hexagonal Architecture? / Port adapter
Explanation and Example of Port-Adapter
- Port
- Inbound Port/Driving Port
- Outbound Port/Driven Port
- Adapter
- Primary/Driving/Inbound Adapter
- Secondary/Driven/Outbound Adapter
Installation and Running
$ pnpm install
$ pnpm run start:dev
Todo
- [ ] Consider implementing the unit test and e2e test
References
As you may know, this project was inspired by,
- Nest JS -Clean code using Hexagonal Architecture ticket system source code
- About Hexagonal Architecture from Tugce Konuklar
- TechTim42's Learn to build a Hexagonal Architecture Micro Service