Skip to content

Commit

Permalink
reorganize examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanspauwen committed Jul 27, 2023
1 parent 1801151 commit 36b3a5d
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions example/README.md → examples/module_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ For the purpose of this example, assume Team A works on the core chat product, a

The `workspace.py` file brings the different models and software systems together, and adds toplevel relationships between them.

Finally, multipe view files (`componentview.py`, `containerview.py`, `systemlandscapeview.py`) describe which views to generate an SVG for.
Finally, multipe view files (`chatserver_componentview.py`, `chatsystem_containerview.py`, `analysissystem_containerview.py` `systemlandscapeview.py`) describe which views to generate an SVG for.

To run the example, you would for instance do:
```
$ pystructurizr dev --view example.componentview
$ pystructurizr dev --view examples.module_example.systemlandscapeview
```
or
```
$ pystructurizr build --view example.containerview --gcs-credentials <...> --bucket-name <...> --object-name <...>
$ pystructurizr build --view examples.module_example.systemlandscapeview --gcs-credentials <...> --bucket-name <...> --object-name <...>
```
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from example.workspace import workspace
from example.analysissystem import analysis_system
from example.chatsystem import chat_server
from .workspace import workspace
from .analysissystem import analysis_system
from .chatsystem import chat_server

workspace.ContainerView(
analysis_system,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions example/workspace.py → examples/module_example/workspace.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from pystructurizr.dsl import Workspace

from example.users import users
from example.chatsystem import chat
from example.analysissystem import analytics
from .users import users
from .chatsystem import chat
from .analysissystem import analytics

workspace = Workspace()
workspace.Model(users)
Expand Down
File renamed without changes.

0 comments on commit 36b3a5d

Please sign in to comment.