The code in ./web could use some improving.
It's written in flask and uses bootstrap templates.
Beyond displaying the website, it contains the logic that connects all of the various services as is sort of the entrypoint to the overall app.
A few issues that it has:
Spaghetti code - The logic in the backend works but is a little bit all over the place, especially when it comes to error handling and mongo calls. Ideally this would be better encapsulated.
Error handling - there are a lot of try/except statements in the code, some of which return error codes to flask, but this is messy and inconsistent.
Most of the issues are contained in ./docker/web/webserver_get.py but also .docker/web/app.py
Status
Assigning to {unassigned} Refers to branch https://github.com/N2ITN/are-you-fake-news/tree/develop-dockerize
Issue
The code in
./web
could use some improving. It's written in flask and uses bootstrap templates. Beyond displaying the website, it contains the logic that connects all of the various services as is sort of the entrypoint to the overall app.A few issues that it has:
Most of the issues are contained in
./docker/web/webserver_get.py
but also.docker/web/app.py
This issue has a little bit of overlap with https://github.com/Data4Democracy/are-you-fake-news/issues/12 but applies specifically to the website backend and its idiosyncrasies.
Tasks