Code Monkey home page Code Monkey logo

ndddsample's Introduction

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.

ndddsample's People

Contributors

aivascu avatar googlecodeexporter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ndddsample's Issues

DB

Where can I found the database file?

Original issue reported on code.google.com by [email protected] on 5 Jun 2009 at 10:24

CVE-2015-9251 (Medium) detected in jquery.1.4.1.nupkg, jquery-1.4.1.min.js

CVE-2015-9251 - Medium Severity Vulnerability

Vulnerable Libraries - jquery.1.4.1.nupkg, jquery-1.4.1.min.js

jquery.1.4.1.nupkg

jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event hand...

Library home page: https://api.nuget.org/packages/jquery.1.4.1.nupkg

Path to dependency file: /ndddsample/src/NDDDSample/app/presentation/NDDDSample.Web/packages.config

Path to vulnerable library: /ndddsample/src/NDDDSample/app/presentation/NDDDSample.Web/packages.config

Dependency Hierarchy:

  • jquery.1.4.1.nupkg (Vulnerable Library)
jquery-1.4.1.min.js

JavaScript library for DOM operations

Library home page: https://cdnjs.cloudflare.com/ajax/libs/jquery/1.4.1/jquery.min.js

Path to vulnerable library: /ndddsample/src/NDDDSample/app/presentation/NDDDSample.Web/Scripts/jquery-1.4.1.min.js

Dependency Hierarchy:

  • jquery-1.4.1.min.js (Vulnerable Library)

Found in HEAD commit: 95282eaf3bab43af3425edffa882b3d78eb12fc6

Vulnerability Details

jQuery before 3.0.0 is vulnerable to Cross-site Scripting (XSS) attacks when a cross-domain Ajax request is performed without the dataType option, causing text/javascript responses to be executed.

Publish Date: 2018-01-18

URL: CVE-2015-9251

CVSS 3 Score Details (6.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: Required
    • Scope: Changed
  • Impact Metrics:
    • Confidentiality Impact: Low
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://nvd.nist.gov/vuln/detail/CVE-2015-9251

Release Date: 2018-01-18

Fix Resolution: 3.0.0


Step up your Open Source Security Game with WhiteSource here

CVE-2012-6708 (Medium) detected in multiple libraries

CVE-2012-6708 - Medium Severity Vulnerability

Vulnerable Libraries - jquery-1.4.1.js, jquery.1.4.1.nupkg, jquery-1.2.6.js, jquery-1.4.1.min.js

jquery-1.4.1.js

JavaScript library for DOM operations

Library home page: https://cdnjs.cloudflare.com/ajax/libs/jquery/1.4.1/jquery.js

Path to vulnerable library: /ndddsample/src/NDDDSample/app/presentation/NDDDSample.Web/Scripts/jquery-1.4.1.js

Dependency Hierarchy:

  • jquery-1.4.1.js (Vulnerable Library)
jquery.1.4.1.nupkg

jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event hand...

Library home page: https://api.nuget.org/packages/jquery.1.4.1.nupkg

Path to dependency file: /ndddsample/src/NDDDSample/app/presentation/NDDDSample.Web/packages.config

Path to vulnerable library: /ndddsample/src/NDDDSample/app/presentation/NDDDSample.Web/packages.config

Dependency Hierarchy:

  • jquery.1.4.1.nupkg (Vulnerable Library)
jquery-1.2.6.js

JavaScript library for DOM operations

Library home page: https://cdnjs.cloudflare.com/ajax/libs/jquery/1.2.6/jquery.js

Path to vulnerable library: /ndddsample/src/NDDDSample/app/presentation/NDDDSample.Web/Scripts/jquery-1.2.6.js,/ndddsample/src/NDDDSample/app/presentation/NDDDSample.Web/Scripts/jquery-1.2.6.min.js

Dependency Hierarchy:

  • jquery-1.2.6.js (Vulnerable Library)
jquery-1.4.1.min.js

JavaScript library for DOM operations

Library home page: https://cdnjs.cloudflare.com/ajax/libs/jquery/1.4.1/jquery.min.js

Path to vulnerable library: /ndddsample/src/NDDDSample/app/presentation/NDDDSample.Web/Scripts/jquery-1.4.1.min.js

Dependency Hierarchy:

  • jquery-1.4.1.min.js (Vulnerable Library)

Found in HEAD commit: 95282eaf3bab43af3425edffa882b3d78eb12fc6

Vulnerability Details

jQuery before 1.9.0 is vulnerable to Cross-site Scripting (XSS) attacks. The jQuery(strInput) function does not differentiate selectors from HTML in a reliable fashion. In vulnerable versions, jQuery determined whether the input was HTML by looking for the '<' character anywhere in the string, giving attackers more flexibility when attempting to construct a malicious payload. In fixed versions, jQuery only deems the input to be HTML if it explicitly starts with the '<' character, limiting exploitability only to attackers who can control the beginning of a string, which is far less common.

Publish Date: 2018-01-18

URL: CVE-2012-6708

CVSS 3 Score Details (6.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: Required
    • Scope: Changed
  • Impact Metrics:
    • Confidentiality Impact: Low
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://nvd.nist.gov/vuln/detail/CVE-2012-6708

Release Date: 2018-01-18

Fix Resolution: 1.9.0


Step up your Open Source Security Game with WhiteSource here

Could not generate/find CargoDb.s3db

What steps will reproduce the problem?
1. build.bat--error
2. run_NDDDSample --error

What is the expected output? What do you see instead?
I see the dos prompt crashed, and i dont see CargoDb.s3db as defined in 
hibernate.cfg.xml

What version of the product are you using? On what operating system?
My OS is windows 7 ultimate 64bit



Original issue reported on code.google.com by [email protected] on 31 May 2012 at 8:58

Cleanup project files.

Issue description

The project files are at this point quite outdated and contain a lot unnecessary data/configuration.

Solution

Cleanup the project files.

CVE-2011-4969 (Medium) detected in multiple libraries

CVE-2011-4969 - Medium Severity Vulnerability

Vulnerable Libraries - jquery-1.4.1.js, jquery.1.4.1.nupkg, jquery-1.2.6.js, jquery-1.4.1.min.js

jquery-1.4.1.js

JavaScript library for DOM operations

Library home page: https://cdnjs.cloudflare.com/ajax/libs/jquery/1.4.1/jquery.js

Path to vulnerable library: /ndddsample/src/NDDDSample/app/presentation/NDDDSample.Web/Scripts/jquery-1.4.1.js

Dependency Hierarchy:

  • jquery-1.4.1.js (Vulnerable Library)
jquery.1.4.1.nupkg

jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event hand...

Library home page: https://api.nuget.org/packages/jquery.1.4.1.nupkg

Path to dependency file: /ndddsample/src/NDDDSample/app/presentation/NDDDSample.Web/packages.config

Path to vulnerable library: /ndddsample/src/NDDDSample/app/presentation/NDDDSample.Web/packages.config

Dependency Hierarchy:

  • jquery.1.4.1.nupkg (Vulnerable Library)
jquery-1.2.6.js

JavaScript library for DOM operations

Library home page: https://cdnjs.cloudflare.com/ajax/libs/jquery/1.2.6/jquery.js

Path to vulnerable library: /ndddsample/src/NDDDSample/app/presentation/NDDDSample.Web/Scripts/jquery-1.2.6.js,/ndddsample/src/NDDDSample/app/presentation/NDDDSample.Web/Scripts/jquery-1.2.6.min.js

Dependency Hierarchy:

  • jquery-1.2.6.js (Vulnerable Library)
jquery-1.4.1.min.js

JavaScript library for DOM operations

Library home page: https://cdnjs.cloudflare.com/ajax/libs/jquery/1.4.1/jquery.min.js

Path to vulnerable library: /ndddsample/src/NDDDSample/app/presentation/NDDDSample.Web/Scripts/jquery-1.4.1.min.js

Dependency Hierarchy:

  • jquery-1.4.1.min.js (Vulnerable Library)

Found in HEAD commit: 95282eaf3bab43af3425edffa882b3d78eb12fc6

Vulnerability Details

Cross-site scripting (XSS) vulnerability in jQuery before 1.6.3, when using location.hash to select elements, allows remote attackers to inject arbitrary web script or HTML via a crafted tag.

Publish Date: 2013-03-08

URL: CVE-2011-4969

CVSS 2 Score Details (4.3)

Base Score Metrics not available

Suggested Fix

Type: Upgrade version

Origin: https://nvd.nist.gov/vuln/detail/CVE-2011-4969

Release Date: 2013-03-08

Fix Resolution: 1.6.3


Step up your Open Source Security Game with WhiteSource here

The project does not load/build in VS 2017

Issue description

The solution projects do not load/build inside VS 2017

Steps to reproduce the issue

  1. Open the project using VS 2017

What's the expected result?

The project loads without any problems.

What's the actual result?

The MVC project does not load.
The solutions fails to build mentioning the unavailable System.Web.Mvc namespace.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.