Poke-berries statistics API.
tree "app"app
├── api
│ ├── application.py
│ ├── controllers
│ │ ├── berries.py
│ │ └── __init__.py
│ ├── __init__.py
│ ├── router.py
│ ├── schemas
│ │ ├── berries.py
│ │ └── __init__.py
│ └── services
│ ├── berries.py
│ └── __init__.py
├── core
│ ├── exceptions
│ │ ├── berries.py
│ │ └── __init__.py
│ └── __init__.py
├── __init__.py
├── __main__.py
├── settings.py
└── tests
├── fixtures
│ ├── berries.py
│ └── __init__.py
├── __init__.py
└── test_berries.py
Set your environment variables to the expected value
APP_POKE_API=https://pokeapi.co/api/v2To start up the project use this command (terminal 1):
docker-compose -f deploy/docker-compose.yml --project-directory . up --buildTo run the tests use this command (terminal 2):
docker-compose -f deploy/docker-compose.yml --project-directory . exec api bashOnce in the docker terminal run this command:
pytest -vv .General snippets are attached:
export $(grep -v '^#' .env | xargs)docker stop $(docker ps -a -q)