Skip to content

budtmo/myAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jan 31, 2019
ac5e6d8 · Jan 31, 2019

History

16 Commits
Mar 9, 2017
Mar 17, 2017
Mar 28, 2017
Mar 7, 2017
Mar 7, 2017
Mar 28, 2017
Mar 7, 2017
Mar 7, 2017
Jan 31, 2019
Mar 9, 2017
Mar 9, 2017
Mar 8, 2017
Mar 7, 2017
Mar 9, 2017

Repository files navigation

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