Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.49 KB

File metadata and controls

32 lines (21 loc) · 1.49 KB

DOMAIN-DRIVEN DESIGN WITH NODEJS AND UNIT TESTS

This is a project to explain hexagonal architecture and unit tests in node.js

What is the Domain?

To define domain-driven design we should first establish what we mean by domain in this context (and in development in general). The common dictionary definition of domain is: “A sphere of knowledge or activity.” Drilling down a bit from that, domain in the realm of software engineering commonly refers to the subject area on which the application is intended to apply. In other words, during application development, the domain is the “sphere of knowledge and activity around which the application logic revolves.” Another common term used during software development is the domain layer or domain logic which may be better known to many developers as the business logic. The business logic of an application refers to the higher-level rules for how business logic interact with one another to create and modify modelled data.

Communication flow

myimage-alt-tag

Dependencies

You need install mongodb in your localhost. after that you on clone the project, downoland the packages and run it.

GO version

Base Framework

DB Connection

$ git clone https://github.com/javierlecca/nodejs-hexagonal-architecture-and-unit-test.git
$ npm i
$ node index