Skip to content

A Domain Driven Design example application in Rust.

License

Notifications You must be signed in to change notification settings

MartinSkovsen/rust-ddd-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Domain Driven Design Example

The purpose of this project is to write a simple application in Rust (2018 edition) that follow 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 three 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 layer, and other infrastructure details.

main.rs contains the initializations of the infrastructure implementations, and contains the UI implementation.

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

About

A Domain Driven Design example application in Rust.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%