🐝 Simple analytics collection
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
documentation
lib
test
util
.env.example
.gitignore
LICENSE
Procfile
Procfile.dev
README.md
app.js
package-lock.json
package.json

README.md

Puck

Puck is a service that accepts a websocket connection from web apps using the Puck client. It validates events the events sent to it, applies necessary transformations, and forwards the data off to all of the places it needs to be tracked. Currently that is Keen.io, Blink, and a backup database.

Usage

This app uses the Heroku runtime, get the Heroku toolbelt here if you don't already have it.

$ cp .env.example .env
$ npm install
$ npm start

⚠️ This requires mongod installed locally if you want to test the database backup.

Testing

If you want to simulate a socket connection, this is a useful tool http://amritb.github.io/socketio-client-tool

Otherwise use npm run test for automated testing.