Skip to content

eibarcenas/PokeAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PokeAPI

Poke-berries statistics API.

Demo

Project Structure

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

Environment variables

Set your environment variables to the expected value

APP_POKE_API=https://pokeapi.co/api/v2

Docker

To start up the project use this command (terminal 1):

docker-compose -f deploy/docker-compose.yml --project-directory . up --build

Unit Tests

To run the tests use this command (terminal 2):

docker-compose -f deploy/docker-compose.yml --project-directory . exec api bash

Once in the docker terminal run this command:

pytest -vv .

Snippets

General snippets are attached:

export $(grep -v '^#' .env | xargs)
docker stop $(docker ps -a -q)

About

Create a Poke-berries statistics API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors