UUDigitalHumanitieslab / parseport

Dutch sentence parser for Spindle + Æthel (and maybe others in the future).
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

[ParsePort backend] Code splitting into services #5

Open XanderVertegaal opened 10 months ago

XanderVertegaal commented 10 months ago

Currently, there is one big View function that communicates with the frontend, the LaTeX service and the Spindle server. It would be best to at least move the communication with the two external APIs to their own module or 'service', with dedicated input validation and error handling.

Examples of this service approach are found in GrETEL: https://github.com/UUDigitalHumanitieslab/gretel-django/blob/develop/backend/services/alpino.py en ook https://github.com/UUDigitalHumanitieslab/gretel-django/blob/develop/backend/services/apps.py