Skip to content

Commit

Permalink
Write README.md of the demo project
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfAfg committed Feb 27, 2024
1 parent d61f249 commit bf8b9d3
Show file tree
Hide file tree
Showing 2 changed files with 172 additions and 6 deletions.
23 changes: 17 additions & 6 deletions demo/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
demo
=====
# bean demo project

An OTP application
This project is a simple demonstration of bean.

Build
-----
## gen_servers and the supervision tree automatically generated for them

$ rebar3 compile
In this project, gen_servers are defined in [src/gen_servers](src/gen_servers) directory. The following figure shows the dependencies of the gen_servers:

```mermaid
graph LR
third_server --> second_server
second_server --> first_server
fib_server
fizzbuzz_server
```

Then bean generates the supervision tree shown in the following figure:

![Generated supervision tree](./generated_supervision_tree.drawio.svg)
155 changes: 155 additions & 0 deletions demo/generated_supervision_tree.drawio.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bf8b9d3

Please sign in to comment.