Current app.py will be reorganized under backend/, with the following objectives:
Typing: Add type hints throughout the backend
Unit Tests: Develop unit tests for all utility and processing functions.
Response Handling: Add a ResponseHandler class in backend/response_handler.py to handle all communication bwn BE-FE, BE-core using consistent JSON responses.
Replace os with pathlib
Reorganize the code under backend/:
Move Utils to backend/utils.py
Move MediaHandler to backend/media_handler.py
Keep app.py for route definitions and Flask app initialization.
This is a big step going towards v1.0 and offers a relatively straightforward first issue for contributors looking to make an impactful contribution to the project.
Current
app.py
will be reorganized underbackend/
, with the following objectives:ResponseHandler
class inbackend/response_handler.py
to handle all communication bwn BE-FE, BE-core using consistent JSON responses.backend/
:Utils
tobackend/utils.py
MediaHandler
tobackend/media_handler.py
app.py
for route definitions and Flask app initialization.This is a big step going towards v1.0 and offers a relatively straightforward first issue for contributors looking to make an impactful contribution to the project.