CloudI / CloudI

A Cloud at the lowest level!

Home Page:https://cloudi.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Elixir example

webdeb opened this issue · comments

Hi @okeuday could you please provide a simple mix project example.
This would be very helpful.

Hi @webdeb, https://github.com/CloudI/CloudI/tree/develop/examples currently has an Elixir example. So, that example is an Elixir internal service.

Embedding CloudI into an Erlang/OTP application currently only has an Erlang example, but that is likely less common. It is best to try the Elixir example first. If you needed the embedded approach with Elixir it would be simplest with the remote_dependency approach using mix. The local_install approach is better, but I have only pursued that with rebar2.

Ah, ok. You would need rebar3 for it to work, right?

@webdeb https://github.com/CloudI/CloudI/tree/develop/examples/Elixir.HelloWorld uses mix, the other examples in that directory use rebar2 or rebar3.

The separate repositories for CloudI services that are used for hex packages use mix too (e.g., https://github.com/CloudI/cloudi_service_cron ), if you needed to experiment with them. I use mix for submitting the hex package at release-time.

@webdeb Closing the issue for now. Can reopen if you think something should be added to changed.