When creating a pull request to merge a branch to master, GitHub will deploy to Heroku development app/dyno. When merging or pushing to master on GitHub, it will deploy the app to the production Heroku app/dyno.
- To build with docker compose: docker compose up --build
- To run tests, Lint, and Coverage report use this command in Docker terminal: pytest --pylint --cov
.pylintrc is the config for pylint .coveragerc is the config for coverage setup.py is a config file for pytest
- https://flask-user.readthedocs.io/en/latest/basic_app.html
- https://hackersandslackers.com/flask-application-factory/
- https://suryasankar.medium.com/a-basic-app-factory-pattern-for-production-ready-websites-using-flask-and-sqlalchemy-dbb891cdf69f
- https://refactoring.guru/replace-conditional-with-polymorphism
- https://refactoring.guru/design-patterns