Api that provides statistics data about growth time of berries from PokeAPI
In the root folder of the project (where the entrypoint.py is) execute the following commands
$ docker build --tag pokeapi .
$ docker run -d -p 5000:5000 pokeapi
Run tests
$ docker exec -it <name_container> bash
$ pytest
In the root folder of the project (where the entrypoint.py is) execute the following commands
You should create a virtual environment with the python 3 preference tool, then activate the environment in console. And now if I run the following commands:
$ python -m pip install -r requeriments.txt
$ source env_configuration.sh development
$ flask run
Run tests
$ pytest
It is recommended to use docker to run the application instance or an environment with ubuntu.
For testing api I provide you this aws instance and the url is:
http://ec2-3-92-255-107.compute-1.amazonaws.com/
In this url you can see the histogram image
http://ec2-3-92-255-107.compute-1.amazonaws.com/allBerryStats