Skip to content

Commit a0986be

Browse files
committed
Update documentation. | AJ sucks (C) whatthecommit.com
1 parent 623d14e commit a0986be

File tree

10 files changed

+426
-129
lines changed

10 files changed

+426
-129
lines changed

FindBugsFilters.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
<!-- exclude UPM_UNCALLED_PRIVATE_METHOD in order to use private on(@Observes ... event) methods -->
33
<FindBugsFilter>
44
<Bug code="UPM"/>
5+
<Bug code="UrF"/>
56
</FindBugsFilter>

docs/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ description: >- # this means to ignore newlines until "baseurl:"
1919
Building File based event-store with Jackson JSON
2020
Serialisation and Deserialization, Jersey REST API
2121
uses Netty runtime and Weld CDI
22-
baseurl: /jersey-netty-cdi-jackson-file-eventstore # the subpath of your site, e.g. /blog
22+
baseurl: /jersey-netty-cdi-jackson-file-eventstore/ # the subpath of your site, e.g. /blog
2323
url: "" # the base hostname & protocol for your site, e.g. http://example.com
2424
#twitter_username: daggerok
2525
github_username: daggerok

docs/about.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

docs/docs/quick-start.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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/

docs/docs/reference.markdown

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)