Packages
ex_sorcery
0.1.0
A toolkit for building event-driven applications in Elixir with event sourcing and CQRS patterns
Current section
Files
Jump to
Current section
Files
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