8000 GitHub - zgbjgg/dasherl-custom-app: A dasherl example of how integrate a complete app
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

zgbjgg/dasherl-custom-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Demo

Thanks!.

About

A dasherl example of how integrate a complete app

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0