jdomenechb/rust-ddd-example
À propos
Une application d’exemple de conception pilotée par le domaine en Rust.
Autres projetsProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalRust Domain Driven Design Example
The purpose of this project is to write a simple application in Rust (2021 edition) that follows basic Domain Driven Design principles, in order to test the capabilities of the language to write applications that follow DDD.
Running the project
Clone the repository, and run in the root of the project:
cargo run
A menu will appear that will guide you through the application.
Structure
The source code is explicitly split into four of the typical DDD layers:
- Domain - Where the business rules of the application reside.
- Application - The layer that orchestrates Domain and Infrastructure, and contains the use cases for your application.
- Infrastructure - Contains implementations of the abstractions defined in the Domain and Application layer, and other infrastructure details.
- Presentation - Defines how to present the data and defined the basic controller actions. Normally, this layer is often considered "Infrastructure", and some people prefer to separate it, whereas some people don't.
main.rs contains the initializations of the infrastructure implementations.
The code also contains unit testing.
Contribution
Please, feel free to contribute asking, discussing, commenting or improving the application via Pull Requests or Issues. All type of feedback will be welcomed!
Resources
Explorer des projets similaires
Chargement…