Skip to content

Api that provides statistics data about growth time of berries from PokeAPI

Notifications You must be signed in to change notification settings

SebastianAyala07/PokeBerriesStatistics

Repository files navigation

PokeBerriesStatistics

Api that provides statistics data about growth time of berries from PokeAPI

Up the server 📋

Con Docker 🚀

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

With virtual environment 🧪

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

Important note

It is recommended to use docker to run the application instance or an environment with ubuntu.

Testing API

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

/allBerryStats

http://ec2-3-92-255-107.compute-1.amazonaws.com/allBerryStats

About

Api that provides statistics data about growth time of berries from PokeAPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published