O'Reilly logo

Learning Sinatra by Manoj Sehrawat, Sudeep Agarwal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The application

To understand how to write a Sinatra application, we will take up a small project and discuss every part in detail, in this and the following chapters.

The idea

We shall make a ToDo app and use Sinatra and a lot of other libraries. The features of the app will be as follows:

  • Each user can have multiple todo lists
  • Each todo list will have multiple items
  • Todo lists can be private, public, or shared with a group
  • Items in each todo list can be assigned to a user or group

The modules that we will build are as follows:

  • Users: This will manage users and groups
  • List: This will manage the todo lists
  • Items: This will manage the items for all the todo lists

Before we start writing the code, let's see what the file structure will be like, understand ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required