Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 872 Bytes

README.md

File metadata and controls

31 lines (26 loc) · 872 Bytes

LearningPython and Docker

Python bases

It has many examples of using python:

  • Lists / Lists as Stacks / Tuples / Dictionaries / Sets / Queues
  • String formatting / Logical operators / Loops / Functions
  • Regular expressions / Recursion / Files management
  • OOP (Object Oriented Programming) / Classes / Inheritance
  • Threads (Multiprocessing) / Asynchronous / Decorators
  • Generators / Iterators / SQL and NoSQL Databases use

Flask app

It contains a Flask app too with some templates and API Rest services examples. Including cookies, sessions, HTTP protocol and SQLALchemy

Docker

The Flask app is containerized using Docker. To deploy with Docker on Heroku (Heroku CLI needed):

heroku login
git add .
git commit -m "<commit message>"
heroku stack:set container
git push heroku <source_branch>:master

To show the logs

heroku logs --tail