WIP: Add pubsweet-backend as a dependency and add the models to app.locals
fixes https://gitlab.coko.foundation/pubsweet/pubsweet-backend/issues/16
There might be a better way of doing this using the backend
or pubsweet
variables that are already imported?
It currently needs to be done here rather than in pubsweet-backend
, as the binding needs to happen before the components are registered. Maybe the component registration could be moved to after the app setup?
Doing it this way could lead to pubsweet
having a dependency on a different version of pubsweet-backend
from the app that it's running, so it really can't be done this way.