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 i
to obtain dependencies.- Create an application with Twitter and save API keys to environment variables
TwitterConsumerKey
andTwitterConsumerSecret
. - Modify or remove
partials/analytics.hbs
with your GAnalytics or frompartials/base
respectively. npm run dev
and openlocalhost: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
andnpm test
will crash.
A functional version of the application exists here.