A portal game to introduce me to Elixir
original
- define a module with a group of functions
- docs are first class citizents and can be access with
h
- Elixir has feature known as Supervisors to recover apps.
The Supervisor has multiple strategies on how to recover such as creating a new object - Elixir has distrivuted transfers that allow you two launch code on different machines on the same network.
For example, you can create and modify a object on one machine and then pull that data from another.
iex --sname room1 --cokie secret -S mix
If available in Hex, the package can be installed as:
-
Add portal to your list of dependencies in
mix.exs
:def deps do [{:portal, "~> 0.0.1"}] end
-
Ensure portal is started before your application:
def application do [applications: [:portal]] end