ndddsample
ndddsample copied to clipboard
NDDDSample - A sample project which demonstrates a practical implementation of the building block patterns described by Eric Evans in "Domain-Driven Design: Tackling Complexity in the Heart of Softwar...
NDDD Sample
NDDDSample is the project which demonstrates a practical implementation of the building block patterns described in the Eric Evans book based on a real but simplified cargo domain (which is also used as example in Eric Evans book).
NDDDSample is the port of Domain-Driven Design Sample from Java to C#
NDDDSample consists of the following parts:
- Web interface allowing to book and track cargos.
- RegisterApp allowing to register handling events for cargos.
Solutions
There are two solutions:
- Web Cargo Tracking Application -
NDDDSample.sln - Register desktop Application -
RegisterApp.slnwhich simulates concept where are two different organizations, as it is in the Java version of the DDD sample NDDDSample-full.slndoesn't have any business\domain meaning it is just full solution with all developed projectsNDDDSample-full-with-setup.slnsimilar as from p.3 but with a setup projectNDDDSample-Cloud-full.slnis cloud (Windws Azure) version of application
Building
ASP.NET MVC 2.0 must be installed. In order to build the source, run the build.bat file. (You'll find the built assemblies in subfolders of /build directory.)
Note: The cloud version can be built and run only from Visual Studio 2010.
Windows Azure SDK needs to be installed. You can find it under tools\WindowsAzureSDK
Running
In order to run application first build the source. See the building section.
- NDDDSample
- To run setup from p.2 Visual Studio should be installed. Please verify also if property
vsinNDDDSample.buildfile corresponds to the path of installed Visual Studio. - Setup NDDDSample by running
setup_NDDDSample.batThis will install Cassini Web Server and NDDDSample application. - Execute run_NDDDSample.bat to run NDDDSample. the following services are run automatically:
NDDDSample.Interfaces.BookingRemoteService.Host.exe- WCF service allowing to book cargosNDDDSample.Interfaces.PathfinderRemoteService.Host.exe- WCF service allowing to find itineraries the default browser is started with home page of NDDDSample web interface
- To run setup from p.2 Visual Studio should be installed. Please verify also if property
- NDDDSample in the Cloud
- Set up NDDDCloudService project as the start-up project
- Press (Ctrl + F5)/F5 to run/debug the solution
- RegisterApp
- Execute run_RegisterApp.bat to run RegisterApp. The following services are run automatically:
-
build\NDDDSample.Interfaces.HandlingService.Host\NDDDSample.Interfaces.HandlingService.Host.exethe application RegisterApp is started
- Execute run_RegisterApp.bat to run RegisterApp. The following services are run automatically:
-
More Details
The last (original) version of the project and details can be found on project's home page: https://code.google.com/archive/p/ndddsample/.
Note: The SVN repository on Google Code will be discontinued shortly due to the termination of the Google Code project. The current repository represents the final state in which the original repository has been left in.
License
- The NDDDSample is the property of Artur Trosin and the project's contributors.
- The project is lincensed under the MIT Licence.