-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
172 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.