reevoo-ping.js is a JavaScript client that allows events to be sent to Reevoo. This is fed into our Analytics tools for analysis.
The User Guide details how to set up ReevooPing with custom implementations.
Grab nodenv and go:
nodenv install
npm installYou should be ready to go! Check by running the tests:
npm testRun this to ⚡ ⚡ ENTER DEV MODE: ⚡ ⚡
npm run watchIn Dev Mode:
- A server will be started to the demo server at http://localhost:8080. This will live reload on
libchanges. - The specs will be run on every
liborspecchange. - Webpack will bundle on every
libchange.
For more information on the tasks you can do, check out package.json.
Sometimes when running Dev Mode, you can encounter:
> webpack -d --watch
events.js:141
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE 127.0.0.1:8080
...
The test server isn't very good at shutting itself down correctly. Use killall node to get rid of any stray Node.JS instances and restart Dev Mode.
- Tell Snowplow about the event. To do this, add your event to the Reevoo Event Dictionary. (Instructions are in the README there.)
- Add the event and specs to this repository.
- Update the version number in accordance with Semantic Versioning. (Hint: A new event is likely to be a minor version bump.) Tag the commit.
Ready to go? Then build for production!
npm run build:prodThis will build a production-ready file and place it in the dist folder. (Do not commit this!)
TODO: Write deployment instructions!