...
Digest-fetch is a plugin used for fetch/node-fetch. We make use of it for the event handler functions. It also supports http basic authentication.
Local Development
Kinvey Flex Services could be tested locallly.
Prerequisites:
- nodemon: the tool for hot-reload https://www.npmjs.com/package/nodemon
- ngrok: the tool for public port exposing https://ngrok.com/download (don't forget to setup auth token)
Setup:
- Go to the project root folder (flex-services)
- Launch nodemon at any empty port (in this case it's 10001): nodemon . localhost 10001
- Launch ngrok and expose port: ngrok http 10001
- Create an external flex service
Put your public url from ngrok to a host field at flex service:
Link the collection to your flex-service
Use public url for requests same as application (Build.one UI) sends them: