analytics's People
Forkers
mkwiatkowskianalytics'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).
Allow users to register an account
After registering, user should be able to see the token.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.