Skip to content

NDDDSample - A sample project which demonstrates a practical implementation of the building block patterns described in Eric Evans's "Domain-Driven Design: [...]

Notifications You must be signed in to change notification settings

clinton-c/ndddsample

 
 

Repository files navigation

Build status Test status

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:

  1. Web Cargo Tracking Application - NDDDSample.sln
  2. Register desktop Application - RegisterApp.sln which simulates concept where are two different organizations, as it is in the Java version of the DDD sample
  3. NDDDSample-full.sln doesn't have any business\domain meaning it is just full solution with all developed projects
  4. NDDDSample-full-with-setup.sln similar as from p.3 but with a setup project
  5. NDDDSample-Cloud-full.sln is 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
    1. To run setup from p.2 Visual Studio should be installed. Please verify also if property vs in NDDDSample.build file corresponds to the path of installed Visual Studio.
    2. Setup NDDDSample by running setup_NDDDSample.bat This will install Cassini Web Server and NDDDSample application.
    3. Execute run_NDDDSample.bat to run NDDDSample. the following services are run automatically:
      • NDDDSample.Interfaces.BookingRemoteService.Host.exe - WCF service allowing to book cargos
      • NDDDSample.Interfaces.PathfinderRemoteService.Host.exe - WCF service allowing to find itineraries the default browser is started with home page of NDDDSample web interface
  • NDDDSample in the Cloud
    1. Set up NDDDCloudService project as the start-up project
    2. Press (Ctrl + F5)/F5 to run/debug the solution
  • RegisterApp
    1. Execute run_RegisterApp.bat to run RegisterApp. The following services are run automatically: - build\NDDDSample.Interfaces.HandlingService.Host\NDDDSample.Interfaces.HandlingService.Host.exe the application RegisterApp is started

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.

About

NDDDSample - A sample project which demonstrates a practical implementation of the building block patterns described in Eric Evans's "Domain-Driven Design: [...]

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 87.2%
  • JavaScript 7.6%
  • Classic ASP 2.5%
  • CSS 1.4%
  • HTML 0.8%
  • Batchfile 0.5%