This repository contains a sample implementation of Domain-driven Design (DDD) architecture. The goal of this project is to showcase how to structure and organize a codebase following the principles of DDD.
.
├── package.json
├── package-lock.json
├── readme.md
├── src
│ ├── core
│ │ ├── entities
│ │ │ ├── entity.ts
│ │ │ └── unique-entity-id.ts
│ │ └── types
│ │ └── optional.ts
│ └── domain
│ ├── entities
│ │ ├── answer.ts
│ │ ├── instructor.ts
│ │ ├── question.ts
│ │ ├── student.ts
│ │ └── value-objects
│ │ ├── slug.spec.ts
│ │ └── slug.ts
│ ├── repositories
│ │ └── answer-repository.ts
│ └── use-cases
│ ├── answer-question.spec.ts
│ └── answer-question.ts
├── tsconfig.json
└── vite.config.ts