fh-mbaas-api
fh-mbaas-api provides FeedHenry MBaaS APIs for Node.js cloud apps.
Usage
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
Documentation for the $fh cloud API is maintained at the FeedHenry API Docs.
Deprecated
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.
- $fh.web -> request
- $fh.log -> console.log
- $fh.parse -> JSON.parse
- $fh.stringify JSON.stringify
Tests
In order to run the tests, please make sure you have Docker installed.
Before running tests do:
npm install
npm install -g grunt-cli
Then to run the tests use npm test
On Windows, use npm run testwindows
API logging
Users of the fh-mbaas-api can then enable logging if they would like to see more output. This is useful for debugging purposes.
It's possible to pass environment variables to enable the logging according the rules specified for debug module:
DEBUG="fh-mbaas-api:*" ./yourscript
If DEBUG_COLORS=0
is passed also it will print log messages with proper timestamps. This is automatically enabled outside properly supported terminal.
[8.1.1] - Thu Nov 9 22:48:08 2017 +0000
Changed
- Updates fh-mbaas-express to 5.9.1 to resolve issue with service api key not being sent in requests
- "fh-mbaas-express": "~5.9.0",
+ "fh-mbaas-express": "~5.9.1",