cluedin-restCluedIn Rest project is the place where all the data access to the CluedIn API are done.
How to install
npm install cluedin-rest
Naming conventionEvery service provided by this library are prefixed with '$C'. This is to quickly identify when using the service that it comes fo the cluedin-rest package.
How to useYou need to have angular in you page and after simply reference the file 'c.data.js' from the dist folder.
How to execute the testCheckout the code, install all the dependencies:
Build the file
Execute all the Test using Karma (integration testing using angularjs)
You should be good to do.
karma start angular.conf.js
How to write a TestCreate a File and give it an appropriate fileName. When done, add a reference to id in the index.js file contained in the 'test' folder.
The test are created using Jasmine 2.0 and are mainly mid-ways tests as it actually hit the server.