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.
npm ito obtain dependencies.- Create an application with Twitter and save API keys to environment variables
TwitterConsumerKeyandTwitterConsumerSecret. - Modify or remove
partials/analytics.hbswith your GAnalytics or frompartials/baserespectively. npm run devand openlocalhost:portin 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 startandnpm testwill crash.
A functional version of the application exists here.