irc-log-viewer
irc-log-viewer copied to clipboard
CouchApp using Ember.js to show IRC logs stored in a CouchDB
irc-log-viewer 
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)
Awesome stuff used
Stored IRC messages
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
CouchDB Views
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.
Front end
Inside the app folder is the basic application.
Development
Prerequisites:
- installed Ruby
- installed CouchDB where app can be deployed or use a free hosting service like the excellent Iris Couch
- installed
couchappcommand line tool for easy pushing of the app to a CouchDB, see installation
Developing
- Clone this repo, obviously
- execute
couchapp initto create an empty.couchapprcfile inside the project (See section.couchapprcon http://couchapp.org/page/couchapp-config) - execute
bundle install - Tests are in located in the
testsfolder - Execute
bundle execute rackupto start test server - Access http://localhost:4020/tests.html to execute the tests
or
- Execute
bundle execute rake testto run the tests from command line
Deploy
- execute
bundle exec rake build - push the Couchapp to your CouchDB; if you have
couchappinstalled, do acouchapp push http://localhost:5984/irc - access the IRC log viewer at
http://localhost:5984/irc/_design/viewer/index.html