Short API challenge, implemented using MVC SOLID design.
-
Get the types for each pokemon from API e.g. bulbasaur is grass and poison
-
Store the data in SQLite3 e.g.
pokemon_name | type
--------------------------
bulbasaur | grass
bulbasaur | poison
charmander | fire
-
Print all the rows from database
-
Query the count of pokemon per type e.g.
type | count
-----------------------
Fire | 3
Water | 2
Normal | 4
- Save a json file in output with the result e.g.
{
"Fire": 3,
"Water": 2,
"Normal": 4
}
To install:
make init
To run:
make deploy