This is a rails app that works as a heroku log drain and tracks user visits to the site.
Currently, it doesn't do much else, except serve up sparklines.
It lives at https://whowashere.herokuapp.com/
- Heroku pushes logs into WhoWasHere as a log drain via the
POST /logsendpoint. - We can retrieve sparkline data for multiple users via the
/api/schools/X/sparklines?id[]=1&id[]=2&id=...endpoint. - We can go to
/schools/X/visitsand/users/X/visitsto see the urls that a user or school has hit in the last 2 weeks.
To login, we use google oauth. Anyone w/ a transparentclassroom.com address may log in.
Logs are uploaded monthly to S3. To download them, look at Downloading Logs
It's just a rails app. rails s will start it on http://localhost:5000
The first time, you'll need to create a database and set it all up:
rake db:create db:migrate db:seed
rake will run all tests