Twitter Grade Stats

Build Status

A spinoff of an AP Stats project, now personalized!

Express application that takes in a Twitter handle and returns statistics about the Tweets from that account. Currently serves only webpages. Displays a pretty, modern HTML5 canvas chart of grade levels and a superimposed Normal distribution to show how Normal we are.

Thanks to the jstat/jstat library for Normal distribution calculations.

Deployment

  1. npm i to obtain dependencies.
  2. Create an application with Twitter and save API keys to environment variables TwitterConsumerKey and TwitterConsumerSecret.
  3. Modify or remove partials/analytics.hbs with your GAnalytics or from partials/base respectively.
  4. npm run dev and open localhost:port in the browser to ensure the key and secret works.

Note that:

  • Environment variables are not set by the application. So, if they're not set in your environment, npm start and npm test will crash.

A functional version of the application exists here.

Share this project:

Updates