FeedHenry MBAAS Cloud APIs
fh-mbaas-api provides FeedHenry MBaaS APIs to Node.js cloud apps.
|License:||Apache License, Version 2.0|
|Mailing list:||feedhenry-dev (subscribe)|
|IRC:||#feedhenry channel in the freenode network.|
fh-mbaas-api is included as standard with your cloud app code.
For custom apps, add the module via npm by running the following for the root of your app
npm install --save fh-mbaas-api
This will install the latest version of fh-mbaas-api and save the installed version in your package.json
Documentation for the $fh cloud API is maintained at the FeedHenry API Docs.
Legacy Rhino functions have been deprecated. These are listed below - with their replacements in bold. All replacements listed but '$fh.web' have drop-in replacements available.
Before running tests do:
npm installnpm install -g grunt-cli
Then to run the tests use
On Windows, use
npm run testwindows
If tests return session errors in relation to redis, like the following:
1) test session no timeout:Uncaught AssertionError: Error: Error: Ready check failed: ERR operation not permitted+ expected - actual
Ensure that the correct redis password is set -
Two sync loops may be invoked per sync frequency if the server-side sync frequency differs from the client-side frequency.
This is because the client and server sync frequencies are set independently. Setting a long frequency on a client does not change the sync frequency on the server.
syncFrequency value of the dataset on the server should be set to the
sync_frequency value of the corresponding dataset on the client to avoid this.
sync_frequencyon the client-side dataset is also set to 120 seconds.
syncFrequencyon the server-side dataset is set to 120 seconds.