The idea behind this app is to create an example of an FE app written in DDD with Object Oriented TypeScript and React. The app is a port of an C# app demonstrated in Valdimir Khorikov online course "Domain Driven Design in Practice".
The app is structured in a way that each domain is a separate folder.
snack-machine-domain
atm-domain
Each domain has layers:
model
- contains domain entities and value objects. Models are responsible for all business logic.repository
- contains domain repositories. Repositories are responsible for data access.service
- contains domain services. Services are responsible for business logic that is not a part of domain entities but required from view perspective.view
- contains UI components