This is a viewer for IRC logs which are stored in a CouchDB. It's basically a couchapp using Ember.js. Demo? Here you go: http://emberjs.iriscouch.com/irc/_design/viewer/index.html (transcript of #emberjs channel)
The IRC messages saved in the CouchDB have the following format:
{
"user": {
"id": "123",
"name": "GOB"
},
"text": "Come on!",
"date": "2012-12-21T12:34:56.789Z"
}
One example of filling the CouchDB with the IRC messages would be a Hubot configured with the store-messages-couchdb.coffee script and using an IRC Adapter
The messages
view returns all messages, where the key is the date structured as an array with the year as first element, month as second and so forth. This allows you to get messages for a specific period.
Inside the app
folder is the basic application.
couchapp
command line tool for easy pushing of the app to a CouchDB, see installationcouchapp init
to create an empty .couchapprc
file inside the project (See section .couchapprc
on http://couchapp.org/page/couchapp-config)bundle install
tests
folderbundle execute rackup
to start test serveror
bundle execute rake test
to run the tests from command linebundle exec rake build
couchapp
installed, do a couchapp push http://localhost:5984/irc
http://localhost:5984/irc/_design/viewer/index.html