This project demonstrates how to integrate Domain-Driven Design (DDD) principles with MikroORM using EntitySchema.
Before getting started, make sure you have the following installed:
- Node.js
- npm (Node Package Manager)
- Clone the repository:
git clone https://github.com/vinialbano/mikro-orm-with-ddd.git
- Install the dependencies:
cd mikro-orm-with-ddd
npm install
The project follows a typical DDD structure, with the following directories:
src
: Contains the application codecommon
: Contains common utilities and shared codelectures
: Contains the lecture-related codedomain
: Contains the domain entities and value objectsapplication
: Contains the use cases and application servicesinfra
: Contains the infrastructure code, including the database configuration
test
: Contains the tests for the database schema and application logic