Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor with Flask factory pattern #26

Open
1 of 3 tasks
dolsysmith opened this issue Apr 25, 2024 · 0 comments
Open
1 of 3 tasks

Refactor with Flask factory pattern #26

dolsysmith opened this issue Apr 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@dolsysmith
Copy link
Collaborator

dolsysmith commented Apr 25, 2024

The factory pattern better supports integration testing.

  • Create a create_app method in __init__.py to hold the app initialization.
  • Separate the database logic into a db.py file.
  • Modify database initialize for compatibility with migrations.

See notes here.

@dolsysmith dolsysmith added the enhancement New feature or request label Apr 25, 2024
@dolsysmith dolsysmith changed the title Refactor with factory Refactor with Flask factory pattern Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant