JackDanger / jack

Javascript Rack Adapter

This URL has Read+Write access

JackDanger (author)
Sat Mar 21 11:28:07 -0700 2009
commit  647a501a8bcedad9c0b2758ac0ad4e1bde60a735
tree    138db1df10e727022293e1f6ed88744c98235134
parent  e57297bd42980f2fd4814a9e82fe9ba4220044a5
jack /
name age message
file .gitignore Wed Jan 28 17:22:06 -0800 2009 Packaging Fixes [technomancy]
file Manifest.txt Fri Mar 20 21:02:43 -0700 2009 fixing Manifest [JackDanger]
file README.markdown Fri Mar 06 23:13:47 -0800 2009 updating README [JackDanger]
file Rakefile Fri Mar 20 20:59:04 -0700 2009 removing minitest dependency [JackDanger]
directory bin/ Wed Feb 18 17:49:48 -0800 2009 updating usage not with right executable name [JackDanger]
file jack.gemspec Sat Mar 21 11:28:07 -0700 2009 build gem [JackDanger]
directory lib/ Fri Mar 20 20:59:23 -0700 2009 bumping version. Lots of new code. [JackDanger]
directory samples/ Thu Mar 12 09:36:02 -0700 2009 Adding more complicated View sample [cohitre]
directory test/ Thu Mar 12 09:34:59 -0700 2009 not running "ruin everything" mem leak test ru... [JackDanger]
README.markdown

Jack

Rack + Javascript = Jack

Write your web apps in the same powerful language on both ends.

Does it work?

Yes, thanks entirely to the hard work of Christian Neukirchen for Rack and John Barnette, Aaron Patterson, Yehuda Katz, and Matthew Draper for their work on Johnson.

Why would I need this?

Because this is kickass, that's why:

function(env){
  return [200, {'Content-Type': 'text/html'}, "you're looking at: "+env['PATH_INFO']];
};

How do I try it painlessly?

$ sudo gem install jbarnette-johnson --source=http://gems.github.com
$ git clone git://github.com/JackDanger/jack.git # or one of the forks
$ cd jack && rake install_gem
  [...]
$ samples/hello.js &
$ curl http://localhost:1337

First version (and idea) by Jack Danger Canty, this version by Phil Hagelberg.