{"id":18004394,"url":"https://github.com/jeffdoolittle/marten.domain","last_synced_at":"2025-04-04T09:42:35.656Z","repository":{"id":143370858,"uuid":"50231365","full_name":"jeffdoolittle/Marten.Domain","owner":"jeffdoolittle","description":"a sample project demonstrating use of http://github.com/JasperFx/marten as state storage for a domain model","archived":false,"fork":false,"pushed_at":"2016-02-26T00:10:27.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T20:19:03.171Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeffdoolittle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-23T09:02:59.000Z","updated_at":"2016-02-19T16:49:45.000Z","dependencies_parsed_at":"2023-04-25T21:03:13.485Z","dependency_job_id":null,"html_url":"https://github.com/jeffdoolittle/Marten.Domain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffdoolittle%2FMarten.Domain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffdoolittle%2FMarten.Domain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffdoolittle%2FMarten.Domain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffdoolittle%2FMarten.Domain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeffdoolittle","download_url":"https://codeload.github.com/jeffdoolittle/Marten.Domain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247157081,"owners_count":20893202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-30T00:14:17.443Z","updated_at":"2025-04-04T09:42:35.631Z","avatar_url":"https://github.com/jeffdoolittle.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ferret\nTactical DDD toolkit for using JasperFx/Marten as state storage for a domain model.\n\n* https://github.com/jasperfx/marten\n* http://jasperfx.github.io/marten/\n\n## Getting Started\n`Ferret.Specs` project requires a `connection.txt` file that contains a valid postgres connection string, such as\n\n```\nServer=127.0.0.1;Port=5432;User Id={user-id};Password={password};Database=ferret-test;\n```\n\n## Building Ferret\n\nexecute `build.ps1` to build Ferret and execute the tests (Ferret uses the awesome Cake build tool - http://cakebuild.net/)\n\n## Working with Ferret\n\nFerret is designed to work with some key concepts of Domain Driven Design. \n\n* Domain Commands - A request for an aggregate to transition its state (may fail or be invalidated)\n* Domain Events - A result of a successful aggregate state transition\n* Aggregates - A logical boundary for things that can change in a business transaction of a given context. An aggregate can be represented by a single class or by a multitude of classes.\n* State - A snapshot of the state transitions for an aggregate\n* Managers - The entry point to your domain that receives commands and dispatches them to the appropriate aggregate\n* Projections - forthcoming\n\n## Other things to note\n\n* Good design suggests you only allow changes to occur to a single aggregate per transaction. Multiple aggregates can be loaded and can interact, but only one should have its state transitioned.\n* It is recommended that no one other than the Aggregate itself take a dependency on the State of the Aggregate. Otherwise changes to State can ripple throughout your system. Instead, systems external to your domain should take a dependency on Domain Events or Projections, and not directly on Aggregate State.\n* You will probably find it beneficial to put your Domain Commands and Domain Events into a separate, shareable assembly. This will make it easier for systems external to your domain to construct commands and work with events.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffdoolittle%2Fmarten.domain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeffdoolittle%2Fmarten.domain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffdoolittle%2Fmarten.domain/lists"}