Current section

Files

Jump to
chronik example lib example application.ex
Raw

example/lib/example/application.ex

defmodule Example.Application do
@moduledoc false
use Application
alias Example.Projection.{CartsState, Echo}
alias Example.{Store, PubSub}
def start(_type, _args) do
children = [
{Store, []},
{PubSub, []},
{CartsState, []},
{Echo, []}
]
opts = [strategy: :one_for_one, name: Example.Supervisor]
Supervisor.start_link(children, opts)
end
end