[Feedhenry-raincatcher] Placement of client, server, mocks, stubs, fixtures in raincatcher modules

Paolo Haji phaji at redhat.com
Thu Feb 9 15:36:06 UTC 2017


>
> I'm wondering why these files tend to be put together in the same
>>>>> directory? This has been a point of confusion when trying to understand the
>>>>> modules.
>>>>> For example, the user-client.js & user-router.js files in
>>>>> https://github.com/feedhenry-raincatcher/raincatcher-user
>>>>> /tree/master/lib/user are intended for the browser and node.js
>>>>> respectively.
>>>>>
>>>>
On this point raincatcher-user is probably the module in worst shape in
terms of clear separation.
For instance router/cloud.js is the cloud app part and router/mbaas.js is
the auth service part... This is mostly because the auth service is
handling all CRUD operations for the user data, as opposed to just handling
auth and leaving the profile data in the cloud app, so there's a lot of
calling through fh-mbaas-api from the cloud app to forward the http calls.
So for this module specifically there's browser, node-cloud-app and
node-auth-service code mixed in.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/feedhenry-raincatcher/attachments/20170209/54d7807e/attachment.htm>


More information about the Feedhenry-raincatcher mailing list