Coder Social home page Coder Social logo

analytics's People

Watchers

 avatar  avatar

Forkers

mkwiatkowski

analytics's Issues

Allow a user to use javascript snippet instead of a token

That's the final piece of the puzzle. You can test this as a /test URL in your tracking app, as discussed before.

JavaScript snippet should replace the token in views, so some previous tests will need updating to reflect this.

Choose and implement a database layer

First make sure the database has its own set of comprehensive unit tests. Each method should be tested.

Choose the database engine to be used, then a ruby driver and finally replace Database class code with one using the DB driver.

Potentially also add rake tasks for initializing the database, if needed.

Allow users to view and use a generated token

After tracking traffic (i.e. getting /request with the token), user should be able to see a rudimentary statistics for her site (e.g. total number of events, or ordered by date in a table).

Each user should have a unique token (write a test for this as well: register two users and make sure each has a different token).

Make request API handle tokens and errors

Sample test cases:

  • Request API should store data in account-specific collections based on the passed token.
  • Request API should return HTTP 403 error code when token is unknown.
  • Request API should return HTTP 404 when called with the wrong HTTP verb (i.e. not POST but GET).

Test the app on production

Deploy the analytics app to Heroku and add the JavaScript snippet to the Bloccit app. Manually test it: make sure you can register an account and that statistics for Bloccit are coming through.

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.