A proper flask implementation of fast food fast using flask.
Run the following docker commands.
- docker-compose build
- docker-compose up -d
Access database via the shell
- docker exec -it <db-container-name> psql -U postgres
- Create database called fastfood.
- docker exec -it <app-container-name> python manage.py db init
- docker exec -it <app-container-name> python manage.py db migrate
- docker exec -it <app-container-name> python manage.py db upgrade
Run tests
docker exec -it <app-container-name> pytest
docker exec -it <app-container-name> tox
Tests with converage
docker exec -it <app-container-name> coverage run -m pytest -v
docker exec -it <app-container-name> coverage report
Stop application
docker-compose stop
FLask
: Flask is a micro web framework written in Python.SQL Alchemey
: SQL Alchemey is an open-source SQL toolkit and object-relational mapper for the Python.Docker
: Docker is a set of platform-as-a-service products that use OS-level virtualization to deliver software in packages called containers.Travis
: Travis CI is hosted continuous integration service used to build and test software projects hosted at GitHub.
- Nangai Arthur - Linkedin