Lightweight
Sinatra is a micro-framework, meaning it is minimalistic and lightweight, making it ideal for small applications and services.
Simplicity
The framework is easy to understand and use, requiring less boilerplate code compared to more complex frameworks like Rails.
Quick to Set Up
Sinatra allows for rapid application development as it can be quickly set up with minimal configuration.
Flexibility
Sinatra provides flexibility to developers, allowing them to structure their application in any way they see fit, without enforcing strict conventions.
Performance
Due to its minimalistic nature, Sinatra can sometimes offer better performance for smaller applications or specific use cases.
Middleware Integration
Sinatra works well with Rack middleware, which allows developers to easily add additional functionality to the application.
Active Community
Sinatra has an active community, providing developers with a wealth of plugins, resources, and support.
While Ruby is not this famous anymore, I still wanted the stack in my architecture. I eschewed Ruby on Rails in favor of the leaner Sinatra framework. I use sequel for database access. The dynamic nature of the language was a bit of a hurdle, which is why it took me more time to develop my service than with Go.
– Source: dev.to
/
4 months ago
Sinatra is a lightweight web application framework written in Ruby. It provides a simple and easy-to-use syntax for building web applications. The framework focuses on being minimalistic, allowing developers to quickly create web applications without having to deal with a lot of the boilerplate code and relatively rigid way of doing things that accompany larger and more popular frameworks like Rails.
– Source: dev.to
/
7 months ago
Sinatra is the best ruby framework available in the market for web development. Sinatra is a simple and easy-to-use DSL written in Ruby and often used popularly in place of Ruby on Rails as a web development framework. Sinatra is named after the legendary musician Frank Sinatra and is powerful enough to set up a fully functional web application with just a single file.
– Source: dev.to
/
6 months ago
You’re bike shedding [0]. Rails/DHH took already established design patterns and made strong opinions into a convention on the folder hierarchy of where you store your code. You can change that hierarchy, its not set in stone. It will require a lot of change. I’ve been on teams and it isn’t just on-boarding time, its countless hours trying to find code written by someone no longer there that had their own layout…
– Source: Hacker News
/
10 months ago
I’m practicing my JavaScript skills and I am building a simple REST API. I’m using Sinatra for the back and and all that does is is define some end points and return JSON. I then use a JavaScript file to call `fetch` on the server and then update/change and display the page using that. At the moment I’m only doing GET requests but will look at POST later.
Source:
about 1 year ago
Today, among beginners with Ruby, it’s common to think about two possible paths when developing an application; if you want a simple single-file API, just use Sinatra and for everything else, use Ruby on Rails. Well, in this article, allow me to provide a way to manage a big application using Sinatra as the HTTP library and dry-rb libraries as the glue to a modular architecture.
– Source: dev.to
/
about 1 year ago
This Ruby app tutorial will demonstrate how to efficiently create and construct a landing page using the Ruby programming language with a lightweight application framework called Sinatra powered by ButterCMS. We’ll be building a landing page for a fictional Puppy training business, read on here!
Source:
about 1 year ago
Yes, and it was not that well designed to be honest… The successor is quite a lot nicer and it’s called Javalin[1]. Same philosophy but just got things right where Spark, being the “first” (in the Java world, using the design inherited by Sinatra[2]) had a few design issues. [1] https://javalin.io/ [2] https://sinatrarb.com/.
– Source: Hacker News
/
over 1 year ago
In this article, we’ll introduce Ruby on Rails’ lesser-known but powerful cousin Sinatra. We’ll use the framework to build a cost-of-living calculator app.
– Source: dev.to
/
over 1 year ago
This is something that kind of annoys me; there’s even a /r/rails sub-reddit specifically for Ruby on Rails stuff. Understandably Rails helped put Ruby on the map. Before Rails, Ruby was just another fringe language. Rails became massively popular, helped many startups quickly build their Web 2.0 sites, and become successful companies (ex: GitHub, LinkedIn, AirBnB, etc). Like others have said, “Rails is where the…
Source:
over 1 year ago
Neat! I do gotta say, since I wasn’t able to find their Github at all through the website (I will totally believe I just missed it), they’re currently failing my “clicks to code” test. Given that it’s not necessarily aimed at engineers, that’s fine tho. (the winner, at zero, remains https://sinatrarb.com/).
– Source: Hacker News
/
over 1 year ago
To create a Ruby web application, our best option is to use Sinatra, one of the most popular Micro Frameworks in the Ruby world. We might need to install some additional gems:.
– Source: dev.to
/
almost 2 years ago
Hello I created this sub for those that love to work with sinatra https://sinatrarb.com/.
Source:
almost 2 years ago
To wrap up my current phase of learning, I’ve been tasked to create a React application that utilizes Sinatra. As an avid D&D fan, I decided that for this project I’d create a character manager. I thought it would be a challenging way to create a backend database of users who manage their characters. I also created a DB Diagram to show my tables and relationships:.
– Source: dev.to
/
almost 2 years ago
In the context of yada and Rails, it’s worth considering Sinatra, a Ruby library released in 2007 which is similar in scope to yada or any other of the Clojure web “libraries”. It’s interesting that even though Sinatra has been available alongside Rails for almost 15 years, I don’t think I’ve seen any job postings for “Sinatra” developers lately (though I’m sure they’re out there, just like Clojure devs).
Source:
about 2 years ago
I’m a big fan of Sinatra, but recently I came across Roda which is by Jeremy Evan’s whose wonderful ORM gem Sequel I’ve used in several projects. Looking at the documentation, Roda seems quite nice and performance gain is always appreciated.
Source:
about 2 years ago
My most recent project was a Bingo game, with a focus on backend development. (The repo for the backend is here, and the frontend is here.) The frontend is a pretty basic React application, and the backend uses a SQLite database with the Active Record ORM, and Sinatra to handle the routes.
– Source: dev.to
/
about 2 years ago
If not rails, perhaps you want to wrap it in sinatra? http://sinatrarb.com/.
Source:
over 2 years ago
If you want to install a lightweight web framework, you can try Sinatra [0] or Roda [1] . [0]: http://sinatrarb.com/ [1]: http://roda.jeremyevans.net/.
– Source: Hacker News
/
over 2 years ago
Not everything written in Ruby is using Rails (although it’s quite likely). If I remember correctly, Stripe used to be big on Sinatra (http://sinatrarb.com).
– Source: Hacker News
/
over 2 years ago
You can get very bare bones with Ruby though. The Sinatra framework is a router + templating engine. Everything else is up to you. It’s my go to choice for when I just want a few endpoints wrapped up in a few files. For example, I built a simple web app that reads a CSV file written by the WiiScale app (for Mac), and displays a chart using HighCharts. My app.rb file is 175 lines of code. Very simple.
Source:
over 2 years ago