Packages
A bare bones interface for the Pokemon API. It can get selected information for a pokemon by name, as well as the complete list of pokemons. This is a student project to learn about caching, ETS, GenServers, supervisors, mix, APIs, hex, git, documentation, testing, and patience.
Current section
Files
Jump to
Current section
Files
lib/application.ex
defmodule Pokelixir.Application do
use Application
@impl true
@spec start(any, any) :: {:error, any} | {:ok, pid}
def start(_type, args) do
IO.puts(args)
children = [
{PokelixirCache, "Cache started"}
]
opts = [strategy: :one_for_one, name: Pokelixir.Supervisor]
Supervisor.start_link(children, opts)
end
end