Packages

Calculations for astronomy in Elixir: coordinates conversions, planets and DSO positions etc.

Current section

Files

Jump to
astrex lib application.ex
Raw

lib/application.ex

defmodule Astrex.Application do
use Application
@impl true
def start(_type \\ [], _args \\ []) do
location = Application.get_env(:astrex, :default_location)
opts = [strategy: :one_for_one, name: Astrex.Supervisor]
children = [
{Astrex.Server, location}
]
Supervisor.start_link(children, opts)
end
end