erlangpl icon indicating copy to clipboard operation
erlangpl copied to clipboard

Make the plugins Erlang/Elixir applications

Open mentels opened this issue 8 years ago • 4 comments

Are there any advantages by treating *EPL.beam files as plugins over making plugins valid Elixir/Erlang applications? The web socket handlers could be configured via the config file.

mentels avatar Apr 03 '17 08:04 mentels

*EPL.beam allows us to automatically configure cowboy routes and automatically register in the UI.

How do you suggest to address these?

michalslaski avatar Apr 03 '17 08:04 michalslaski

Each plugin could configure its application environment (e.g. via env tuple in .app file), and point us to websocket handler.

arkgil avatar Apr 03 '17 12:04 arkgil

Exactly, that was my idea.

Have a look at erl_cowboy and how it's being used in dobby_rest. If I understand the problem correctly, you could have tuples like {"/path/to/my_resource", handle_module} passed to the Erl/Ex application env either through the .app file or .config files (mix.exs or config/*.exs files respectively for Elixir).

mentels avatar Apr 03 '17 13:04 mentels

I think it's related to both #27 and #26 .

arkgil avatar Apr 03 '17 20:04 arkgil