Skip to content
Just playing with grape http://www.isotope11.com
JavaScript CoffeeScript Ruby
Find file
Latest commit 2e7c6ad @knewter Merge pull request #3 from dblock/master
A more elegant way of dealing with app and 405s.
Failed to load latest commit information.
api
app
coffee/lib
config Refactored application.
features Rackup with grape and with trystatic.
models Add wine app, with a mongoid backing, and wire up the API. There's no…
public
spec Added API CRUD and specs.
.gitignore
.rspec Added API CRUD and specs.
.rvmrc first commit
Gemfile Refactored application.
Gemfile.lock Refactored application.
README.md Add coffee examples.
config.ru Refactored application.

README.md

Testting out Grape, Backbone, and CoffeeScript together

So I've already written an extensive BackboneJS application, but that was ~1.5 years ago and I've just forgotten it all by now. I also didn't use CoffeeScript back then, so this is an opportunity for me to put together an example using the pair.

Finally, I want to pursue using Grape for APIs so that's going in here as well.

Development

Install coffee-script:

npm install -g coffee-script

That obv. assumes you already have node installed.

Next, tell it to watch the coffee files in coffee/lib and compile them in public/javascript:

coffee -o public/javascript -cw coffee/lib
Something went wrong with that request. Please try again.