https://github.com/zgbjgg/dasherl-custom-app
A dasherl example of how integrate a complete app
https://github.com/zgbjgg/dasherl-custom-app
dash dasherl elixir erlang plotly
Last synced: about 2 months ago
JSON representation
A dasherl example of how integrate a complete app
- Host: GitHub
- URL: https://github.com/zgbjgg/dasherl-custom-app
- Owner: zgbjgg
- License: mit
- Created: 2019-02-22T17:11:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-28T16:00:27.000Z (almost 7 years ago)
- Last Synced: 2025-01-15T11:13:08.586Z (over 1 year ago)
- Topics: dash, dasherl, elixir, erlang, plotly
- Language: Erlang
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dasherl-custom-app
A dasherl example of how integrate a complete app
This is an example of how build a Dash app using Erlang code through Dasherl and Jun. The example uses a small csv with cancer data, one column is the ICCC name, other the gender and finally the number of cases for each combination. With this file generate a simple pie graph representing the ICCC cases and their percentage.
Let's compile and generate the release:
```
$ make && make rel
```
Start the release and setup our app:
```
$ make live
```
Setup the layout and callbacks into the dasherl (into release):
```
(dasherl_custom_app@zgbjgg)1> {ok, Server} = dasherl_custom_app:setup().
{ok,<0.383.0>}
```
Done!, point your browser to: http://127.0.0.1:8000/cancer-data and you will see the pie graph, also a single dropdown, with dropdown you can filter data and recreate the pie graph, this filtering is made from erlang in the callback handler.

Thanks!.