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 [email protected] -S mix helios.server
You can run up to 3 instances of this application (libcluster is configured that way).
$ iex --name [email protected] -S mix helios.server
$ iex --name [email protected] -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 protected]"}
iex> HeliosExample.Facade.User.create_user(1, params)
{:ok, :created}