/pokemon-api-challenge

Short API challenge, implemented using MVC SOLID design

Primary LanguagePython

poke-challenge

Short API challenge, implemented using MVC SOLID design.

Tasks

  1. Get the types for each pokemon from API e.g. bulbasaur is grass and poison

  2. Store the data in SQLite3 e.g.

pokemon_name    |   type
--------------------------
bulbasaur       |   grass
bulbasaur       |   poison
charmander      |   fire
  1. Print all the rows from database

  2. Query the count of pokemon per type e.g.

type      |   count
-----------------------
Fire      |   3
Water     |   2
Normal    |   4
  1. Save a json file in output with the result e.g.
{
    "Fire": 3,
    "Water": 2,
    "Normal": 4
}

To run

To install:

make init

To run:

make deploy