# hemanthveeramallisutherland/loan-v2-logices architecture

> Architecture diagram of the GitHub repository hemanthveeramallisutherland/loan-v2-logices, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hemanthveeramallisutherland/loan-v2-logices
- Repository: https://github.com/hemanthveeramallisutherland/loan-v2-logices

## Overview

This is a Neutrinos-generated Node/Express loan-application service. Its visible runtime path starts at HTTP requests, initializes configured startup scripts and routes, and dispatches the Loan_V2 logic service; that service prepares loan operations and produces responses. The tree also shows database/session, integration-adapter, schema-validation, and tracing capabilities. The README provides no workflow details, and several modules are unsampled, so their connections are omitted unless the source index or excerpts establish them.

Main entry points: [`server/src/index.ts`](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/index.ts) (Express server), [`server/src/ServerStartScripts.ts`](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/ServerStartScripts.ts) (Startup scripts), [`server/src/utils/Logger.ts`](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/Logger.ts) (Logging), [`server/src/sd-services/Loan_V2/logics.ts`](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/sd-services/Loan_V2/logics.ts) (Loan operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["HTTP runtime"]
  node_server["Express server<br/>[index.ts]"]
  node_routes["Route registry<br/>[routes.ts]"]
  node_middleware["Global middleware"]
  node_apiresponse["API responses<br/>[APIResponse.ts]"]
  node_startup["Startup scripts"]
end

subgraph group_loan["Loan workflows"]
  node_loanlogic["Loan operations<br/>[logics.ts]"]
  node_base["Service runtime<br/>[SDBaseService.ts]"]
end

subgraph group_data["Data access"]
  node_mongo["Mongo persistence"]
  node_mongocon["Mongo connections"]
  node_sql["SQL operations"]
  node_sessions["Session store<br/>[SessionStore.ts]"]
  node_sessionentities["Session entities<br/>[Session.ts]"]
end

subgraph group_integrations["Integration adapters"]
  node_auth["Directory auth"]
  node_amqp["AMQP producer<br/>[Producer.ts]"]
  node_soap["SOAP connection<br/>[SoapConnection.ts]"]
  node_email["Email output<br/>[EmailOutService.ts]"]
  node_filein["File input<br/>[FileInService.ts]"]
  node_fileout["File output<br/>[FileOutService.ts]"]
  node_formats["Format converters"]
end

subgraph group_platform["Platform services"]
  node_tracing["Trace events<br/>[TracerService.ts]"]
  node_schema["Schema builder<br/>[schema-builder.ts]"]
  node_erd["ERD schema"]
  node_validator["Schema validation<br/>[validateUtil.ts]"]
  node_logger["Logging<br/>[Logger.ts]"]
  node_config["Runtime config<br/>[config.ts]"]
end

node_client(("API client"))

node_client -->|"sends requests"| node_server
node_server -->|"loads routes"| node_routes
node_routes -->|"registers service"| node_loanlogic
node_server -->|"loads middleware"| node_middleware
node_server -->|"applies responses"| node_apiresponse
node_server -->|"runs startup"| node_startup
node_loanlogic -->|"uses runtime"| node_base
node_loanlogic -->|"sends trace data"| node_tracing
node_startup -->|"initializes"| node_mongocon
node_startup -->|"loads entities"| node_sessionentities
node_startup -->|"uses logger"| node_logger
node_mongo -->|"uses connections"| node_mongocon
node_sessions -.->|"uses entities"| node_sessionentities
node_sql -.->|"uses typeorm logger"| node_logger
node_schema -->|"builds schemas"| node_erd
node_schema -->|"logs"| node_logger
node_validator -->|"uses schema"| node_schema
node_logger -->|"reads settings"| node_config

click node_server "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/index.ts"
click node_routes "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/routes.ts"
click node_middleware "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/middleware/GlobalMiddlewares.ts"
click node_apiresponse "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/middleware/APIResponse.ts"
click node_loanlogic "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/sd-services/Loan_V2/logics.ts"
click node_base "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/services/SDBaseService.ts"
click node_tracing "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/services/TracerService.ts"
click node_startup "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/ServerStartScripts.ts"
click node_mongo "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-mongodb/Mongodb/MongoPersistance.ts"
click node_mongocon "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-mongodb/Mongodb/MongoConnections.ts"
click node_sql "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-sql/ExecuteSql/GenericRDBMSOperations.ts"
click node_sessions "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-session/Session/SessionStore.ts"
click node_sessionentities "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/entity/ndefault-session/Session/Session.ts"
click node_auth "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-active-directory/ActiveDirectory/ActiveDirectoryAuthService.ts"
click node_amqp "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-amqp-producer/AMQPProducer/Producer.ts"
click node_soap "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-call-soap/Soap/SoapConnection.ts"
click node_email "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-email/EmailOut/EmailOutService.ts"
click node_filein "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-file/FileIn/FileInService.ts"
click node_fileout "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-file/FileOut/FileOutService.ts"
click node_formats "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-json/JSONConverter/JSONConverterService.ts"
click node_schema "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/schema-builder.ts"
click node_erd "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/erd-schema-builder.ts"
click node_validator "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-datamodel/find/validateUtil.ts"
click node_logger "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/Logger.ts"
click node_config "https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/config/config.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_server,node_routes,node_middleware,node_apiresponse,node_startup,node_client toneBlue
class node_loanlogic,node_base toneAmber
class node_mongo,node_mongocon,node_sql,node_sessions,node_sessionentities toneMint
class node_auth,node_amqp,node_soap,node_email,node_filein,node_fileout,node_formats toneRose
class node_tracing,node_schema,node_erd,node_validator,node_logger,node_config toneIndigo
```

## Components

### HTTP runtime

- [Express server](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/index.ts): `server/src/index.ts`
- [Route registry](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/routes.ts): `server/src/routes.ts`
- [Global middleware](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/middleware/GlobalMiddlewares.ts): `server/src/middleware/GlobalMiddlewares.ts`
- [API responses](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/middleware/APIResponse.ts): `server/src/middleware/APIResponse.ts`
- [Startup scripts](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/ServerStartScripts.ts): `server/src/ServerStartScripts.ts`

### Loan workflows

- [Loan operations](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/sd-services/Loan_V2/logics.ts): `server/src/sd-services/Loan_V2/logics.ts`
- [Service runtime](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/services/SDBaseService.ts): `server/src/services/SDBaseService.ts`

### Data access

- [Mongo persistence](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-mongodb/Mongodb/MongoPersistance.ts): `server/src/utils/ndefault-mongodb/Mongodb/MongoPersistance.ts`
- [Mongo connections](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-mongodb/Mongodb/MongoConnections.ts): `server/src/utils/ndefault-mongodb/Mongodb/MongoConnections.ts`
- [SQL operations](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-sql/ExecuteSql/GenericRDBMSOperations.ts): `server/src/utils/ndefault-sql/ExecuteSql/GenericRDBMSOperations.ts`
- [Session store](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-session/Session/SessionStore.ts): `server/src/utils/ndefault-session/Session/SessionStore.ts`
- [Session entities](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/entity/ndefault-session/Session/Session.ts): `server/src/entity/ndefault-session/Session/Session.ts`

### Integration adapters

- [Directory auth](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-active-directory/ActiveDirectory/ActiveDirectoryAuthService.ts): `server/src/utils/ndefault-active-directory/ActiveDirectory/ActiveDirectoryAuthService.ts`
- [AMQP producer](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-amqp-producer/AMQPProducer/Producer.ts): `server/src/utils/ndefault-amqp-producer/AMQPProducer/Producer.ts`
- [SOAP connection](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-call-soap/Soap/SoapConnection.ts): `server/src/utils/ndefault-call-soap/Soap/SoapConnection.ts`
- [Email output](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-email/EmailOut/EmailOutService.ts): `server/src/utils/ndefault-email/EmailOut/EmailOutService.ts`
- [File input](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-file/FileIn/FileInService.ts): `server/src/utils/ndefault-file/FileIn/FileInService.ts`
- [File output](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-file/FileOut/FileOutService.ts): `server/src/utils/ndefault-file/FileOut/FileOutService.ts`
- [Format converters](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-json/JSONConverter/JSONConverterService.ts): `server/src/utils/ndefault-json/JSONConverter/JSONConverterService.ts`

### Platform services

- [Trace events](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/services/TracerService.ts): `server/src/services/TracerService.ts`
- [Schema builder](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/schema-builder.ts): `server/src/utils/schema-builder.ts`
- [ERD schema](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/erd-schema-builder.ts): `server/src/utils/erd-schema-builder.ts`
- [Schema validation](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/ndefault-datamodel/find/validateUtil.ts): `server/src/utils/ndefault-datamodel/find/validateUtil.ts`
- [Logging](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/utils/Logger.ts): `server/src/utils/Logger.ts`
- [Runtime config](https://github.com/hemanthveeramallisutherland/loan-v2-logices/blob/main/server/src/config/config.ts): `server/src/config/config.ts`

### Other components

- **API client**

## Connections

- API client → Express server: sends requests (evidence: `server/src/index.ts`)
- Express server → Route registry: loads routes (evidence: `server/src/index.ts`)
- Route registry → Loan operations: registers service (evidence: `server/src/routes.ts`)
- Express server → Global middleware: loads middleware (evidence: `server/src/index.ts`)
- Express server → API responses: applies responses (evidence: `server/src/index.ts`)
- Express server → Startup scripts: runs startup (evidence: `server/src/index.ts`)
- Loan operations → Service runtime: uses runtime (evidence: `server/src/sd-services/Loan_V2/logics.ts`)
- Loan operations → Trace events: sends trace data (evidence: `server/src/sd-services/Loan_V2/logics.ts`)
- Startup scripts → Mongo connections: initializes (evidence: `server/src/ServerStartScripts.ts`)
- Startup scripts → Session entities: loads entities (evidence: `server/src/ServerStartScripts.ts`)
- Startup scripts → Logging: uses logger (evidence: `server/src/ServerStartScripts.ts`)
- Mongo persistence → Mongo connections: uses connections (evidence: `server/src/utils/ndefault-mongodb/Mongodb/MongoPersistance.ts`)
- Session store → Session entities: uses entities
- SQL operations → Logging: uses typeorm logger
- Schema builder → ERD schema: builds schemas (evidence: `server/src/utils/schema-builder.ts`)
- Schema builder → Logging: logs (evidence: `server/src/utils/schema-builder.ts`)
- Schema validation → Schema builder: uses schema (evidence: `server/src/utils/ndefault-datamodel/find/validateUtil.ts`)
- Logging → Runtime config: reads settings (evidence: `server/src/utils/Logger.ts`)
