/chuck_norris_api

A Chuck Norris OTP application to consume https://api.chucknorris.io/

Primary LanguageElixir

ChuckNorris

OTP application to consume https://api.chucknorris.io

Installation

The package can be installed by adding chuck_norris to your list of dependencies in mix.exs:

def deps do
  [
    {:chuck_norris, "~> 0.1.0"}
  ]
end

Use

If added as dependency the server will start ChuckNorris.Server and load a joke for each category that could be accessed by:

iex> ChuckNorris.Server.get_jokes

The jokes will be refreshed each 5 min.

Documentation

https://hexdocs.pm/chuck_norris.