The Sinatra Songbook Project

Sinatra To Do List in 60 Lines of Code

One of the nice things about Sinatra is you can build apps in any way you want and you only need one file.

I’ve been playing around over the weekend and managed to build a very simple To Do list app, very similar to SuperDo. But it only uses one file and exactly 60 lines of code - including views!

It works like a charm, using a REST api to create, update and delete tasks. Completed tasks are crossed out and blank tasks aren’t allowed (although there’s no error message). Oh, and it also uses HTML5, so it must be super cool!

I don’t think I can make this any shorter - anybody got any suggestions?