Giter VIP home page Giter VIP logo

reevoo-ping.js's Introduction

ReevooPing: JavaScript Client

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.

Development

Grab nodenv and go:

nodenv install
npm install

You should be ready to go! Check by running the tests:

npm test

⚡ ⚡ DEV MODE ⚡ ⚡

Run this to ⚡ ⚡ ENTER DEV MODE: ⚡ ⚡

npm run watch

In Dev Mode:

  • A server will be started to the demo server at http://localhost:8080. This will live reload on lib changes.
  • The specs will be run on every lib or spec change.
  • Webpack will bundle on every lib change.

For more information on the tasks you can do, check out package.json.

Troubleshooting

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.

Creating New Events

  1. Tell Snowplow about the event. To do this, add your event to the Reevoo Event Dictionary. (Instructions are in the README there.)
  2. Add the event and specs to this repository.
  3. Update the version number in accordance with Semantic Versioning. (Hint: A new event is likely to be a minor version bump.) Tag the commit.

Building

Ready to go? Then build for production!

npm run build:prod

This will build a production-ready file and place it in the dist folder. (Do not commit this!)

Deployment

TODO: Write deployment instructions!

reevoo-ping.js's People

Contributors

davidsevcik avatar mediazard avatar osa911 avatar jonnyarnold avatar irikuo avatar errm avatar

Watchers

 avatar Alex Malkov avatar Mike K avatar John Plummer avatar James Cloos avatar  avatar  avatar  avatar

reevoo-ping.js's Issues

Async?

As suggested by @davidsevcik in #4, we should consider what advantages we would get by having an asynchronous version of this library.

In my head we would trade complexity of usage for resilience in the event of failure.

Simplify adding actions

It would be nice to just be able to define an action name and a schema, without the faff of having to define a new method and test that method.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.