diff --git a/README.md b/README.md
index d1ea991..cbfd2e9 100644
--- a/README.md
+++ b/README.md
@@ -35,3 +35,7 @@
### Další poznámky
- Uživatel neexistuje (je nejspíš jen jeden globální v obou modulech)
- Zprávy drží portfolio a nakupují/prodávají
+
+## Struktura modulu zprávy
+
+
diff --git a/docs/Makefile b/docs/Makefile
index 807e3a6..52eadfa 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -1,9 +1,11 @@
.PHONY: build
build: dst .WAIT \
- dst/system_arch.svg
+ dst/system_arch.svg \
+ dst/news_module.svg
export: exports .WAIT \
- exports/system_arch.svg
+ exports/system_arch.svg \
+ exports/news_module.svg
dst:
mkdir dst
diff --git a/docs/exports/news_module.svg b/docs/exports/news_module.svg
new file mode 100644
index 0000000..878c724
--- /dev/null
+++ b/docs/exports/news_module.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/docs/exports/system_arch.svg b/docs/exports/system_arch.svg
index e971aa3..2edce97 100644
--- a/docs/exports/system_arch.svg
+++ b/docs/exports/system_arch.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/docs/news_module.dot b/docs/news_module.dot
new file mode 100644
index 0000000..5541b02
--- /dev/null
+++ b/docs/news_module.dot
@@ -0,0 +1,23 @@
+digraph newsmod {
+ rankdir=TD;
+ graph [fontname="arial"];
+ node [fontname="arial"];
+ edge [fontname="arial"];
+
+ USER [label="User"]
+ STOCK [label="Stock module"]
+ HTTP [shape=box3d,label="HTTP server (inferium)"]
+ REST [shape=box3d,label="REST server (inferium)"]
+ DB [shape=box,label="Database (sled)"]
+ CORE [shape=box,label="Logic core"]
+ NEWS [label="External news API"]
+ AI [shape=box,label="Sentiment analyzer (VADER)"]
+ USER -> HTTP
+ USER -> STOCK
+ STOCK -> REST
+ CORE -> DB [style="dashed"]
+ REST -> CORE [style="dashed"]
+ HTTP -> CORE [style="dashed"]
+ CORE -> NEWS
+ CORE -> AI [style="dashed"]
+}
diff --git a/docs/system_arch.dot b/docs/system_arch.dot
index 393be60..c3e3c97 100644
--- a/docs/system_arch.dot
+++ b/docs/system_arch.dot
@@ -1,11 +1,31 @@
digraph sysdiag {
+ rankdir=LR
+
graph [fontname="arial"];
node [fontname="arial"];
edge [fontname="arial"];
- RS [shape=box3d,label="REST server"]
- ZA [label="API na zprávy"]
- RS -> ZA
- RC [shape=box,label="REST klient"]
- RC -> RS
+ subgraph cluster_01 {
+ label="Modul zprávy"
+
+ Z_REST_CLIENT [shape=box,label="REST klient"]
+ Z_REST_SERVER [shape=box3d,label="REST server"]
+ Z_HTTP_SERVER [shape=box3d,label="HTTP server"]
+ }
+
+ subgraph cluster_02 {
+ label="Modul burza"
+
+ B_REST_CLIENT [shape=box,label="REST klient"]
+ B_REST_SERVER [shape=box3d,label="REST server"]
+ B_HTTP_SERVER [shape=box3d,label="HTTP server"]
+ }
+
+ USER [label="Uživatel"]
+
+ Z_REST_CLIENT -> B_REST_SERVER
+ B_REST_CLIENT -> Z_REST_SERVER
+
+ USER -> Z_HTTP_SERVER
+ USER -> B_HTTP_SERVER
}