Introduction
Sinatra is a Domain Specific Language for rapidly making web applications in Ruby. It keeps an insignificant list of capabilities, passing on the designer to utilize the devices that best suit them and their application. It can be integrated with any Rack-based application stack, including Rails. Companies like Apple, BBC, GitHub, LinkedIn, and others use it.

What is Sinatra?
Sinatra is a web framework that gives users the core essentials and abstractions to create straightforward and dynamic Ruby web applications. Before developing Sinatra applications, it is crucial to have a fundamental understanding of the Ruby programming language.
The advantage of using Sinatra over more powerful web frameworks like Rails is that it's easier to comprehend how an application's fundamental features operate. It would be more practical to transition to more complex tools, like Rails, after knowing how the essential elements function using a lightweight tool for constructing apps.
MVC stands for Model-View-Controller in web applications.
In other words, MVC emphasizes the separation of logic in our program. Model View Controller is a software design pattern that separates the logic while creating an application.
-
M: M stands for the models that serve as the central logic and house the data needed for our applications. Classes that interface with the Database to store data can represent the models. Becoming familiar with Active Record is essential as it is utilized in creating Sinatra apps to deal with our model classes effectively. Active Record is an ORM that offers standardized methods to let developers interact model classes with databases, saving them a tonne of time while creating applications.
-
V: V stands for views and is the user's interface with our application. The views comprise our JavaScript, CSS, and HTML code.
- C: C stands for the controllers in our application is the "middle-man" that communicates with our models and database to correctly render some feature to our browser, depending on the request (sign-in, sign-out, create an account, etc.) the user made to the application. The MVC pattern would be utilized in the straightforward Sinatra application "Vacation Budget Tracker" previously stated.





