Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.23 KB

README.md

File metadata and controls

40 lines (28 loc) · 1.23 KB

MyAPI

Build Status codecov

A Sample RESTful API written in Python and uses Flask and Connexion / Swagger as frameworks, PostgreSQL as database, Flask-SQLAlchemy as Object Relational Mapper, Gunicorn as WSGI HTTP Server and Nginx as Proxy Server.

Requirements

  1. docker-compose version 1.6.0+

Quick Start

  1. Run application and its database with command:

    local.sh run
  2. accees app through web browser.

Unit test

local.sh test

Troubleshooting

All logs inside container are stored under folder /var/log/supervisor. you can print out log file by using docker exec. Example:

docker exec -it api tail -f /var/log/supervisor/gunicorn.stdout.log