This repository shows how to use Microsoft's tsyringe on Deno, applying a DDD architecture style.
- Import maps and Deno-friendly CDNs.
- Deno Configuration file.
- Settings for Deno extension on Visual Studio Code.
- Usage of
tsyringe
library. - Implementation of an DDD Clean Architecture Boilerplate.
.
├── src
└── application # Layer that composes application use cases
├── commands # Folder that includes the command-kind use cases
└── queries # Folder that includes the query-kind use cases
├── domain # Business domain classes and everything that composes domain model
└── infrastructure # Communication with what is external of application
└── repositories # Connects with external data sources or services
└── test # Testing codebase
- Clone or download this repository
- Run
deno --allow-env mod.ts
. - The application should finish successfully without prompting messages other
than the
Download
messages sent by Deno.
To test this codebase, once you've already downloaded or cloned the repository, run:
deno test --allow-env