Skip to content

Student porject - Calling the Pokemon API with HTTPoison, ETS table cache, GenServers, Supervisors, Testing and Documentaiton

Notifications You must be signed in to change notification settings

BigSpaces/pokelixir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Pokelixir

image

This Mix application is a student project, designed by Elixir Jedi Master @BrooklinJazz, director of Dockyard Academy.

The purpose of the exercise is to put together the knowledge absorbed during first half of the curriculum. Students who surviv... erm, complete the assignment, prove some understanding and use of:

  • Elixir (of course)
  • Data types
  • ETP
  • Caching
  • APIs
  • GenServers
  • Testing
  • Mix projects
  • Supervision trees
  • Documentation
  • GitHub
  • Patience, perseverance, and a bit of coffee here and there.

Installation

If available in Hex, the package can be installed by adding pokelixir to your list of dependencies in mix.exs:

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

Extensive documentation (a couple of paragraphs so far) can be found at https://hexdocs.pm/pokelixir.

Features

Get your daily API dopamine hit by retrieving basic information about a pokemon. Pass your preferred pokemon's name to the function Pokelixir.get_by_name/1. The data is stored in a %Pokelixir{} struct.

Alternatively, you may populate your local cache with all of the pokemons available through the API. Use Pokelixir.all(). Delight in knowing that it is all happening under the careful supervision of a... supervisor.

Only a selected number of fields are parsed for each pokemon.

Enjoy!

image

About

Student porject - Calling the Pokemon API with HTTPoison, ETS table cache, GenServers, Supervisors, Testing and Documentaiton

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages