Fun with Sinatra, Heroku and MongoDB

06 12 2009

I’ve been toying around with the idea for a small website lately, but never actually got around to do it. In an attempt to clear out my personal to do list I finally motivated myself to start yesterday, and I have to say the following combination of tools is not only insanely efficient, but also really fun to work with:


  • Sinatra, “a DSL for quickly creating web applications in Ruby with minimal effort”. I recommend using it in combination with Mongrel, Shotgun and Haml.

  • Heroku, a Ruby cloud hosting platform. Small sites are for free and Heroku’s git-based workflow just feels so natural. You can also manage your gem dependencies and set up environment variables, which made my life a whole lot easier.

  • MongoDB, “a scalable, high-performance, open source, schema-free, document-oriented database”. In this specific case I used MongoHQ for the database hosting, since they were nice enough to provide me with a beta account. I stored all the connection information for MongoHQ in environment variables as described above:


With this combination I was able to go from zero to mostly finished (I still need to write some of the content and make/steal a stylesheet) in very little time, while actually having fun! Thanks everybody for providing the Ruby community which such awesome tools! :-)



Trackbacks


06 12 2009
PingBack
Weblog: topsy.com
Tracked: Dec 06, 15:56
13 12 2009
happynerds.net is online!
In my previous blog post I mentioned how much fun I have in creating a small web project with Sinatra, Heroku and MongoHQ and today said project finally went online: Happynerds – Programming Links for Kids If you wonder why I’m doing this
Weblog: citizen428.blog()
Tracked: Dec 13, 16:56

Comments

Display comments as (Linear | Threaded)
13 12 2009
#1 Jordan Arentsen (Reply)

Do you have invites to MongoHQ? I’ve requested an invite twice, but have yet to see a response. I would like to do something with a similar setup.

13 12 2009
#1.1 citizen428 (Reply)

Jordan, I’m sorry but MongoHQ doesn’t seem to have invites yet. It’s strange that your requests get ignored though, I basically got my answer the next day or so.

18 12 2009
#1.1.1 joselo (Reply)

how long it took to send the invitation?

Thanks

20 12 2009
#1.1.1.1 citizen428 (Reply)

I got the invite 2 days after I sent an email.


Add Comment


Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Textile-formatting allowed

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA 1CAPTCHA 2CAPTCHA 3CAPTCHA 4CAPTCHA 5


Standard emoticons like :-) and ;-) are converted to images.