The worker is supposed to get all orders from CloudLink via REST API or MQTT and then execute these tasks on the Showcase Mi5 directly. Therefore the worker will directly access the Recipe Tool. He will also watch the order for completion and report back to the CloudLink via REST API.
npm install
npm start
or
node app.js
npm test
Note: for some tests you need a proper configured config.js file
Mocha is used as a test framework, since it has a very nice integration in the Webstorm IDE.
- grunt is used as a task runner to execute mocha
- chai-as-promised is used for promise support