Demonstrates capabilities of helios framework
NOTE: this is still in early development phase, so it may brake sometimes.
You need to install Eventstore localy or check
config/config.exs
and change adapter_config to meet your instalation if eventstore
is available on different network address.
Then clone this repo and run:
$ mix deps.get
$ mix compile
$ iex --name helios_example_1@127.0.0.1 -S mix helios.server
You can run up to 3 instances of this application (libcluster is configured that way).
$ iex --name helios_example_2@127.0.0.1 -S mix helios.server
$ iex --name helios_example_3@127.0.0.1 -S mix helios.server
from any iex console above, check functions that are available in helios_example.ex
file.
For instance you could run:
iex> params = %{"first_name" => "Test", "last_name" => "User", "email" => "email@example.com"}
iex> HeliosExample.Facade.User.create_user(1, params)
{:ok, :created}