Packages

A toolkit for building event-driven applications in Elixir with event sourcing and CQRS patterns

Current section

Files

Jump to
ex_sorcery lib sorcery application.ex
Raw

lib/sorcery/application.ex

defmodule Sorcery.Application do
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
{Sorcery.PubSub, []},
{Sorcery.EventStore, []},
{Sorcery.Domain.Registry, []},
{Sorcery.AutoStart, []}
]
opts = [strategy: :one_for_one, name: Sorcery.Supervisor]
Supervisor.start_link(children, opts)
end
end