Skip to content

Node Microservices Template using Driven Design Domain (DDD), CQRS and Event Sourcing

License

Notifications You must be signed in to change notification settings

ldiego73/node-microservices-template

This branch is 1 commit ahead of master.

Folders and files

NameName
Last commit message
Last commit date
Jun 10, 2020
May 18, 2020
Jun 11, 2020
Jun 11, 2020
May 28, 2020
May 14, 2020
Jun 10, 2020
May 18, 2020
May 28, 2020
May 14, 2020
Jun 11, 2020
May 25, 2020
Jun 10, 2020
Jun 11, 2020
Jul 21, 2022

Repository files navigation

Node Microservices Template

Node Microservices Template using Driven Design Domain (DDD), CQRS and Event Sourcing

Architecture

Architecture diagrams

Explicit Architecture

Concentric Layers

Dependency Flow

Project structure

This project is structured by libraries and modules

├── .vscode                               # VSCode configuration to settings typescript version
│   └── settings.json                    
├── libs                                  # Folder that contains the libs for the microservices
│   ├── kernel                            # Shared Kernel (@micro/kernel)
│   ├── logger                            # Centralized library for logs both node js and browsers (@micro/logger)  
│   ├── server                            # Centralized library for create custom server using NestJS (@micro/server)  
│   ├── server-graphql                    # Centralized library for create custom server with graphql using NestJS (@micro/server-graphql)  
│   └── utils                             # Library for validations, extensions, etc. (@micro/utils)  
├── microservices
│   ├── bounded context
│   │   ├── app
│   │   ├── config
│   │   ├── core
│   │   │   ├── application
│   │   │   │   ├── dtos
│   │   │   │   ├── mappers
│   │   │   │   └── use-cases
│   │   │   ├── domain
│   │   │   │   ├── errors
│   │   │   │   ├── factory
│   │   │   │   ├── repository
│   │   │   │   └── services *
│   │   │   ├── infraestructure
│   │   │   │   ├── database *
│   │   │   │   ├── http *
│   │   │   │   ├── services *
│   │   │   │   ├── mappers
│   │   │   │   └── repository
│   │   ├── interfaces
│   │   │   ├── console
│   │   │   │   ├── commands
│   │   │   │   └── app.js
│   │   │   ├── graphql
│   │   │   │   ├── core
│   │   │   │   ├── models
│   │   │   │   ├── modules
│   │   │   │   └── main.js
│   │   │   └── rest
│   │   │   │   ├── core
│   │   │   │   ├── modules
│   │   │   │   └── main.js
└── README.md