|
| 1 | +--- |
| 2 | +# Feel free to add content and custom Front Matter to this file. |
| 3 | +# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults |
| 4 | +layout: post |
| 5 | +title: "Developer Guide" |
| 6 | +date: 2019-09-01 05:11:51 +0300 |
| 7 | +--- |
| 8 | +_clone repo_ |
| 9 | + |
| 10 | +```bash |
| 11 | +git clone --depth=1 https://github.com/daggerok/jersey-netty-cdi-jackson-file-eventstore.git app |
| 12 | +cd app/ |
| 13 | +``` |
| 14 | + |
| 15 | + |
| 16 | +_run fat jar_ |
| 17 | + |
| 18 | +```bash |
| 19 | +./mvnw package ; java -jar target/*-all.jar |
| 20 | +``` |
| 21 | + |
| 22 | +_test event-stpre_ |
| 23 | + |
| 24 | +```bash |
| 25 | +echo '[ |
| 26 | + { |
| 27 | + "type":"CounterCreated", |
| 28 | + "aggregateId": "00000000-0000-0000-0000-000000000000", |
| 29 | + "counterName": "hello 1" |
| 30 | + }, |
| 31 | + { |
| 32 | + "type":"CounterIncremented", |
| 33 | + "aggregateId": "00000000-0000-0000-0000-000000000000", |
| 34 | + "by": "max", |
| 35 | + "withValue": 2 |
| 36 | + }, |
| 37 | + { |
| 38 | + "type":"CounterIncremented", |
| 39 | + "aggregateId": "00000000-0000-0000-0000-000000000000", |
| 40 | + "by": "max", |
| 41 | + "withValue": 3 |
| 42 | + }, |
| 43 | + { |
| 44 | + "type":"CounterIncremented", |
| 45 | + "aggregateId": "00000000-0000-0000-0000-000000000000", |
| 46 | + "by": "max" |
| 47 | + }, |
| 48 | + { |
| 49 | + "type":"CounterSuspended", |
| 50 | + "aggregateId": "00000000-0000-0000-0000-000000000000", |
| 51 | + "reason": "because!" |
| 52 | + } |
| 53 | +]' | http post :8080/events/collection |
| 54 | + |
| 55 | +http :8080/events/00000000-0000-0000-0000-000000000000 Accept:application/json |
| 56 | +http :8080/events/00000000-0000-0000-0000-000000000001/collection Accept:application/json |
| 57 | +``` |
| 58 | + |
| 59 | + |
| 60 | +NOTE: _This project has been based on [GitHub: daggerok/main-starter (branch: maven-java)](https://github.com/daggerok/main-starter/tree/maven-java)_ |
| 61 | + |
| 62 | +links: |
| 63 | + |
| 64 | +* [Overriding Jackson ObjectMapper Provider in Jersey](https://stackoverflow.com/a/5234682/1490636) |
| 65 | +* [spotbugs plugin](https://spotbugs.readthedocs.io/en/stable/) |
| 66 | + |
| 67 | +_quick project docs jekyll guide_ |
| 68 | + |
| 69 | +```bash |
| 70 | +cd docs |
| 71 | +bundle |
| 72 | +bundle exec just-the-docs rake search:init |
| 73 | +bundle exec jekyll serve |
| 74 | +bundle exec jekyll build |
| 75 | +mv -v _site |
| 76 | +``` |
| 77 | + |
| 78 | +Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk]. |
| 79 | + |
| 80 | +[jekyll-docs]: https://jekyllrb.com/docs/home |
| 81 | +[jekyll-gh]: https://github.com/jekyll/jekyll |
| 82 | +[jekyll-talk]: https://talk.jekyllrb.com/ |
0 commit comments