Sinatra

Original author(s)| Blake Mizerany
Developer(s)| Konstantin Haase
Initial release| 9 September 2007 (2007-09-09)
Repository| Sinatra Repository
Written in| Ruby
Operating system| Cross-platform
Type| Web application framework
License| MIT License
Website| www.sinatrarb.com

Sinatra is a free and open source software web application library and domain-specific language[1] written in Ruby. It is an alternative to other Ruby web application frameworks such as Ruby on Rails, Merb, Nitro, and Camping. It is dependent on the Rack web server interface. It is named after musician Frank Sinatra.[2]

Designed and developed by Blake Mizerany, Sinatra is small and flexible. It does not follow the typical model–view–controller pattern used in other frameworks, such as Ruby on Rails. Instead, Sinatra focuses on "quickly creating web-applications in Ruby with minimal effort."[3] Because of much smaller size compared to Ruby on Rails, it is also called microframework.[4]

Some notable companies and institutions that use Sinatra include Apple,[5] BBC,[6] the British Government's Government Digital Service,[7] LinkedIn,[8] the National Security Agency,[9] Engine Yard, Heroku, GitHub,[10] Stripe, and Songbird.[11] Travis CI provides much of the financial support for Sinatra's development.[2]

Sinatra was created and open-sourced in 2007. It inspired multiple ports and similar projects in other programming languages, such as Express.js and Scalatra.[4][12]

Mizerany and Heroku's Adam Wiggins introduced and discussed Sinatra at RubyConf 2008.[13]

## Contents

* 1 Example
* 2 References
* 3 Further reading
* 4 External links

## Example

#!/usr/bin/env ruby
require 'sinatra'

get '/' do
redirect to('/hello/World')
end

get '/hello/:name' do
"Hello #{params[:name]}!"
end

## References

1. ↑ "Taking the Stage - Sinatra: Up and Running". Safaribooksonline.com. https://www.safaribooksonline.com/library/view/sinatra-up-and/9781449306847/ch01.html.
2. ↑ 2.0 2.1 Sinatra: About
3. ↑ Sinatra: Readme
4. ↑ 4.0 4.1 Carlson, Lucas; Richardson, Leonard (2015). Ruby Cookbook: Recipes for Object-Oriented Scripting. O'Reilly Media. ISBN 9781449373696. https://books.google.com/books?id=oRqkBwAAQBAJ&q=Sinatra+microframework&pg=PA679.
5. ↑ Open Source software used by Apple
6. ↑ BBC Zeitgeist
7. ↑ O'Reilly radar: With GOV.UK, British government redefines the online government platform
8. ↑ JRubyfying LinkedIn's Front-end
9. ↑ NSA Careers: The Programmer
10. ↑ "Open Source (Almost) Everything". 22 November 2011. http://tom.preston-werner.com/2011/11/22/open-source-everything.html.
11. ↑ Sinatra in The Wild
12. ↑ Save Data Automatically with Ruby on Rails, https://aristeksystems.com/blog/ror-autosave-data-function/#how, retrieved 2022-05-11
13. ↑ Confreaks: RubyConf 2008

## Further reading

* Harris, Alan; Haase, Konstantin (November 2011). Sinatra: Up And Running (First ed.). O'Reilly Media. p. 120. ISBN 978-1-4493-0423-2. http://oreilly.com/catalog/0636920019664/.
* Harper, Dan. "Singing with Sinatra — nettuts". http://net.tutsplus.com/tutorials/ruby/singing-with-sinatra/.
* "Sinatra Book". https://sinatra-org-book.herokuapp.com/.

## External links

* v
* t
* e

Ruby programming language

Implementations|

| Active|

* Ruby MRI; YARV
* mruby
* JRuby
* Rubinius
* MagLev
* RubyMotion

|

Discontinued|

* MacRuby
* IronRuby
* XRuby
* HotRuby

IDE|

* Komodo
* NetBeans
* RadRails
* RubyMine

Applications|

* Capistrano
* Hackety Hack
* Interactive Ruby Shell
* Pry
* Rake
* Redmine
* RSpec
* RubyGems
* RVM
* Chef
* Puppet
* Vagrant
* Homebrew
* CocoaPods
* fastlane (mobile app build automation tools)

Libraries and frameworks|

* Adhearsion
* Camping
* eRuby (RHTML)
* Merb
* Padrino
* RubyCocoa
* Ruby on Rails
* Shoes
* Sinatra
* QtRuby

Server software|

* mod ruby
* Mongrel
* Phusion Passenger (mod_rails/mod_rack)
* Rack
* WEBrick

People|

* Yukihiro Matsumoto
* David Heinemeier Hansson
* why the lucky stiff

Other|

* Document format
* why's (poignant) Guide to Ruby
* Ruby Central
* RubyKaigi
* RubyForge
* Ruby License

* Category
* Commons

* v
* t
* e

Web frameworks

* Comparison

C++|

* CppCMS
* Wt

CLI|

* ASP.NET
* Core
* AJAX
* Dynamic Data
* MVC
* Razor
* Web Forms
* DNN
* BFC
* MonoRail
* OpenRasta
* Umbraco
* WebSharper

ColdFusion|

* CFWheels
* ColdBox Platform
* ColdSpring
* Fusebox
* Model-Glue

Common Lisp|

* Caveman2
* CL-HTTP
* Weblocks

Haskell|

* Yesod
* Snap

Java|

* AppFuse
* Flexive
* Grails
* GWT
* ICEfaces
* ItsNat
* JavaServer Faces
* JHipster
* Jspx
* JWt
* OpenXava
* Play
* Remote Application Platform
* RIFE
* Seam
* Sling
* Spring
* Stripes
* Struts
* Tapestry
* Vaadin
* Vert.x
* WebWork
* Wicket
* WaveMaker
* ZK

JavaScript|

* Angular/AngularJS
* Backbone.js
* Chaplin.js
* Closure
* Dojo Toolkit
* Ember.js
* Express.js
* Ext JS
* jQuery
* Knockout.js
* Meteor
* MooTools
* Node.js
* OpenUI5
* Prototype
* React
* Rico
* script.aculo.us
* Sencha Touch
* SproutCore
* Svelte
* Vue.js
* Wakanda

Perl|

* Catalyst
* Dancer
* Mason
* Maypole
* Mojolicious
* WebGUI

PHP|

* CakePHP
* CodeIgniter
* Drupal
* Fat-Free
* FuelPHP
* Flow
* Grav
* Gyroscope
* Horde
* Joomla
* Kohana
* Laravel
* Lithium
* Midgard
* MODX
* Nette
* Phalcon
* PHP-Fusion
* Pop PHP
* PRADO
* ProcessWire
* Qcodo
* Silex
* SilverStripe
* Symfony
* TYPO3
* WordPress
* XOOPS
* Yii
* Zend Framework

Python|

* BlueBream
* CherryPy
* Django
* Flask
* Grok
* Nevow
* Pyjs
* Pylons
* Pyramid
* Quixote
* TACTIC
* Tornado
* TurboGears
* web2py
* Webware
* Zope 2
* more...

Ruby|

* Camping
* Merb
* Padrino
* Ruby on Rails
* Sinatra

Scala|

* Lift
* Play
* Scalatra

Smalltalk|

* AIDA/Web
* Seaside

Other languages|

* Vibe.d (D)
* Application Express (PL/SQL)
* Grails (Groovy)
* Kepler (Lua)
* OpenACS (Tcl)
* Phoenix (Elixir)
* SproutCore (JavaScript-Ruby)
* Yaws (Erlang)

0.00

(0 votes)

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Software:Sinatra&oldid=746280"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template