Packages

Is a random word generator dictionary used to create hangman game

Current section

Files

Jump to
dictionary_johnson lib runtime application.ex
Raw

lib/runtime/application.ex

defmodule Dictionary.Runtime.Application do
alias Dictionary.Runtime.Server
use Application
use Supervisor
def start(_type, _args) do
child = [
{Server, []}
]
opts = [
name: __MODULE__,
strategy: :one_for_one,
max_restarts: 1,
max_seconds: 5
]
Supervisor.start_link(child, opts)
end
end