July 13, 2023, 8:27 p.m. | Jose Armando Vargas

DEV Community dev.to

Puedes leer la versión en español aquí


Hey! In this article, we are going to talk about the implementation of Clean Architecture, specifically Domain-Driven Design (DDD) in NestJS. We will cover various aspects ranging from folder structure to dependency injection between layers. We will be using the ODM mongoose, but feel free to use your preferred ORM/ODM!


Skip the entire article and check out the source code here!





Why NestJS?


NestJS is a Node.js framework that provides us …

architecture article dependency design domain español folder free hey implementation injection javascript nestjs typescript

Head of Security Operations

@ Canonical Ltd. | Home based - Americas, EMEA

Security Specialist

@ Lely | Maassluis, Netherlands

Senior Cyber Incident Response (Hybrid)

@ SmartDev | Cầu Giấy, Vietnam

Sr Security Engineer - Colombia

@ Nubank | Colombia, Bogota

Security Engineer, Investigations - i3

@ Meta | Menlo Park, CA | Washington, DC | Remote, US

Cyber Security Engineer

@ ASSYSTEM | Bridgwater, United Kingdom