Stefano Bernardi

RSS
Feb 7

The Joy of Sinatra

Sunday morning I woke up with a weird API idea, and decided to spend the morning building it.

I unconsciously headed to http://www.sinatrarb.com and 20 minutes later I had a complete API returning awesome JSON and performing a few operations in the backend.

It’s just amazing what you can achieve with Sinatra and the power of Rubygems:

The joy is in the simplicity, control, flexibility and power that Sinatra gives you, particularly coming from Rails where all the really cool stuff happens in the backend without you ever knowing nor understanding it. Next step: plug in MongoDB, which stores all your data in JSON anyways. Next next step: get to understand Node.js and Express.js