This is a web app run by NodeJS, written in Javascript, and made using fastify web microframework.
The architecture of this source code is loosely based on Explicit Architecture which is based on Domain-Driven Design (DDD) and Hexagonal Architecture. Take note that business logic is strictly separated from infrastructure logic. The app is a monolith designed to be broken down into microservices in the near future. This app is divided into services which is contained inside the "services" folder of this app. Each service has its own folder and an index.js
file in their folder. Since fastify-cli is used, each service can be run independent of each other with their own ENV files.
A service here represents a Bounded Context in DDD.
The folder structure of a _se