public
Fork of lazyatom/backchat
Description: Your own personal hoodwink'd. Add commenting to any site.
Clone URL: git://github.com/lukeredpath/backchat.git
Search Repo:
name age message
folder .gitignore Tue May 20 06:48:54 -0700 2008 Ignore the backchat database [lukeredpath]
folder README.markdown Tue May 20 07:04:20 -0700 2008 Markdown syntax would be nice [lukeredpath]
folder backchat.rb Tue May 20 06:52:10 -0700 2008 The posts loaded for the RSS feed should be in ... [lukeredpath]
folder test.html Sat May 03 13:45:38 -0700 2008 Add a flag to control sending the CSS [lazyatom]
README.markdown
## Backchat

Basically a simple server to embed comments on other websites. Like, say, Trac. You can think of it a bit like 
Hoodwink'd, except these comments can be private, and therefore contain sensitive information.

### Usage

You'll need a few gems first:

    $ gem install merb-core bluecloth markaby activerecord
  
You'll also need the RubyRSS gem, which unfortunately isn't available on RubyForge.

    $ curl -O http://rubyurl.com/C9Fl
    $ gem install rubyrss-1.1.gem

Run the server:

    $ cd backchat
    $ merb -I backchat.rb

Then embed the javascript in a page or template:

    <script type="text/javascript" src="http://your-server:4000/<reference>.js"></script>

Where <reference> is something unique, like a trac changeset number.

### TODO

* A better way of embedding the HTML than document.write might be nice - the way I'm doing it right now is incredibly 
flaky
* Determine the reference automatically from the URL
* Some kind of bookmarklet