hapigerJS is a HapiGER driver for NodeJS.
Installation
`$ npm install hapigerjs`
Create driver instance
var hapigerjs = ; var url = processenvHAPIGERJS_URL;var port = processenvHAPIGERJS_PORT; var client = url: url port: port;
Create a namespace
client
Create some Events
client
Link similar habits between Thomas and Fabio
client
Now Fabio buys something that Thomas never seen before
client
Retrieving recommendations for Thomas
client;
Returns
{ recommendations:
[ { thing: 'HairGel',
weight: 0.4472135954999579,
last_actioned_at: '2016-04-26T17:35:17+02:00',
last_expires_at: '2016-10-12T02:00:00+02:00',
people: [Object] } ],
neighbourhood: { Fabio: 0.4472135954999579, Thomas: 1 },
confidence: 0.0003639896269238396 }
Gulp will run tests for the project
21:04:23 Starting 'default'...Using default URL http://localhostUsing default PORT 3456 18 -_-_-_-_-_-_-_-_-_-_------ 0 -_-_-_-_-_-_-_-_-_-_| /\_/\ 0 -_-_-_-_-_-_-_-_-_-^| -_-_-_-_-_-_-_-_-_- "" "" 18 22:49:29 Finished 'default' after 661 ms
Coverage
- Code Coverage Report from 18 Integration Tests
License
The MIT License (MIT)