defmodule ExCheckout.Application do @moduledoc false use Application alias ExCheckout.Config @name __MODULE__ def start(_, args) do repo = Config.repo() children = [ ExCheckout.Registry, {repo, args}, {DynamicSupervisor, strategy: :one_for_one, name: ExCheckout.Checkout.Supervisor} ] opts = [ strategy: :one_for_one, name: @name ] Supervisor.start_link(children, opts) end @version Mix.Project.config()[:version] def version, do: @version end