nestjs-hexagonal-example icon indicating copy to clipboard operation
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,