https://github.com/aretecode/marriage
MarriagES is an example event sourced system for dealing with (2 or more) partners (gender & sex do not matter, you don't even have to be human) getting married with the future in mind.
https://github.com/aretecode/marriage
Last synced: 3 months ago
JSON representation
MarriagES is an example event sourced system for dealing with (2 or more) partners (gender & sex do not matter, you don't even have to be human) getting married with the future in mind.
- Host: GitHub
- URL: https://github.com/aretecode/marriage
- Owner: aretecode
- Created: 2015-06-29T03:25:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-29T03:58:37.000Z (over 10 years ago)
- Last Synced: 2025-09-16T19:37:55.732Z (4 months ago)
- Language: PHP
- Size: 258 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Event Sourced MarriagES
MarriagES is an example event sourced system for dealing with (2 or more) partners getting married with the future in mind.
After reading [Gay marriage: the database engineering perspective:](http://qntm.org/gay), I set a timer for 2 hours (had to set it again) and made an example approach to the problem.
## Todo
### .Partner
* can EventSource as well, use standard types, extend with *noun* details & could be queried
### .Marriage
* easy to extend to add additional data such as ```[location] [guests > rank (best, normal, parent)] [preacher] [vows] [comments] [engagement]```
* could abstract to make ```Marry``` the same as ```Create Marriage```
### Naming & Syntax
* could change all ```PartnerIds``` to ```Partners```
* could format it according to the [PSR-2 standard](http://www.php-fig.org/psr/psr-2/)
* ::transferFromWriteToRead is a real lame/shamefull hack, suggestions on how to change are welcome
### Libraries & Implementation
* would love to see it using Doctrine, Aura.SQL & using SQL or Mongo or anything else.
* cool to see a little html & js page using it
* could have Divorce|MarryAll application usage
* use a lib (maybe put mine up) for Specification
### Tests
* If people show interest in this, I'll write tests
* Try [Travis](travis-ci.org)
###Examples
* Flush out the examples in the index for more uses, pre-tests