Fetchs game detail from http://www.metacritic.com. More details in tests
- With
docker-compose
## Review docker-compose.yml and start the deployment
$ docker-compose up -d --build
$ cd tests
$ python3 test.py
- With
cli
$ pip3 install -e .
$ export PORT=8081
$ export URL=http://www.metacritic.com/game/playstation-4
$ metacritic_api
INFO:Serving on http://0.0.0.0:8081
- This application is written in Python Flask packed in pypi style, fetch game details and exposes 2 GET HTTP methods(More details in tests)
- The application internally uses
waitress
server to serve requests. - In
docker-compose
deployment, the nginx container acts as proxy which configuration can be seenhere for metacritic-api container
Please refer tests directory
docker-compose
$ docker-compose down
cli
$ pip3 uninstall metacritic_api