Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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: 

  1. nodemon: the tool for hot-reload https://www.npmjs.com/package/nodemon
  2. ngrok: the tool for public port exposing https://ngrok.com/download (don't forget to setup auth token)


Setup:

  1. Go to the project root folder (flex-services)
  2. Launch nodemon at any empty port (in this case it's 10001): nodemon . localhost 10001
  3. Launch ngrok and expose port: ngrok http 10001
  4. Create an external flex service 


Image Added

Put your public url from ngrok to a host field at flex service:

Image Added

Image Added

Link the collection to your flex-service

Image Added

Use public url for requests same as application (Build.one UI) sends them:

Image Added