Heroku and Sinatra and HAML and SASS and DataMapper and OhMigod
Sinatra is a lightweight, rack-based web application framework that can run on Heroku. You can find out about Sinatra here. Find out about rack-based apps on Heroku, here.
Sinatra’s getting started guide is here and a more complete manual for Sinatra is here. And there are more complete tutorials, with downloadable examples here.
Doing a hello-world app on Sinatra and Heroku takes just three files. Commit to git, push to heroku and done.
Also you can rackup to get the server running the easy way.
A more complete example (which also uses SASS) and which I am in the process of working on here. It did not work out of the box, apparently because of some problem with DataMapper. Here’s maybe a more complete tutorial with Datamapper and Sinatra.
DataMapper seems is a simplified ORM that replaces ActiveRecord. A brief intro at datamapp.org is here and the documentation is here.
A nice tutorial for DataMapper is here. NetTutsPlus has a lot of nice tutorials on Ruby and Rails.
What’s very cool is the simplicity of the CSS using SASS and the wonderful simplicity of the markup using HAML. For an even cooler way of writing HAML and so on, check Zen Coding.
And then there’s the Ruby Toolbox. This site categorizes all the cool Ruby stuff that’s out there. For example, here’s the page on web frameworks.
Comments
Post a Comment