Giter VIP home page Giter VIP logo

irc-log-viewer's Introduction

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 _attachments folder is the basic front end. It uses Ember.js and BPM as a build system.

Development

Prerequisites:

  • installed BPM
  • installed CouchDB where app can be deployed or use a free hosting service like the excellent Iris Couch
  • installed couchapp command line tool for easy pushing of the app to a CouchDB, see installation

Developing

  • Clone this repo, obviously
  • Tests are in located in the _attachments/tests folder
  • Execute bpm preview inside _attachments to start a development server
  • Access http://localhost:4020/tests.html to execute the tests

Deploy

  • execute bpm rebuild inside _attachments
  • push the Couchapp to your CouchDB; if you have couchapp installed, do a couchapp push http://localhost:5984/irc
  • access the IRC log viewer at http://localhost:5984/irc/_design/viewer/index.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.