fbpx
Wikipedia

Sinatra (software)

Sinatra is a free and open source software web application library and domain-specific language[2] 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.[3]

Sinatra
Original author(s)Blake Mizerany
Developer(s)Konstantin Haase
Initial release9 September 2007 (2007-09-09)
Stable release
3.0.2[1]  / 1 October 2022; 19 months ago (1 October 2022)
RepositorySinatra Repository
Written inRuby
Operating systemCross-platform
TypeWeb application framework
LicenseMIT License
Websitewww.sinatrarb.com

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."[4] Because of much smaller size compared to Ruby on Rails, it is also called microframework.[5]

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

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.[5][13]

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

Example edit

#!/usr/bin/env ruby require 'sinatra' get '/' do  redirect to('/hello/World') end get '/hello/:name' do  "Hello #{params[:name]}!" end 

References edit

  1. ^ Error: Unable to display the reference properly. See the documentation for details.
  2. ^ "Taking the Stage - Sinatra: Up and Running". Safaribooksonline.com. Retrieved 2016-10-21.
  3. ^ a b Sinatra: About
  4. ^ Sinatra: Readme
  5. ^ a b Carlson, Lucas; Richardson, Leonard (2015). Ruby Cookbook: Recipes for Object-Oriented Scripting. O'Reilly Media. ISBN 9781449373696.
  6. ^ Open Source software used by Apple
  7. ^ BBC Zeitgeist 2010-11-28 at the Wayback Machine
  8. ^ O'Reilly radar: With GOV.UK, British government redefines the online government platform
  9. ^ JRubyfying LinkedIn's Front-end
  10. ^ NSA Careers: The Programmer 2013-12-16 at the Wayback Machine
  11. ^ "Open Source (Almost) Everything". 22 November 2011. Retrieved 16 January 2015.
  12. ^ Sinatra in The Wild
  13. ^ Save Data Automatically with Ruby on Rails, retrieved 2022-05-11
  14. ^ Confreaks: RubyConf 2008 2009-03-31 at the Wayback Machine

Further reading edit

  • Harris, Alan; Haase, Konstantin (November 2011). Sinatra: Up And Running (First ed.). O'Reilly Media. p. 120. ISBN 978-1-4493-0423-2.
  • Harper, Dan. "Singing with Sinatra — nettuts".
  • "Sinatra Book".

External links edit

  • Official website  

sinatra, software, sinatra, free, open, source, software, application, library, domain, specific, language, written, ruby, alternative, other, ruby, application, frameworks, such, ruby, rails, merb, nitro, camping, dependent, rack, server, interface, named, af. Sinatra is a free and open source software web application library and domain specific language 2 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 3 SinatraOriginal author s Blake MizeranyDeveloper s Konstantin HaaseInitial release9 September 2007 2007 09 09 Stable release3 0 2 1 1 October 2022 19 months ago 1 October 2022 RepositorySinatra RepositoryWritten inRubyOperating systemCross platformTypeWeb application frameworkLicenseMIT LicenseWebsitewww wbr sinatrarb wbr com 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 4 Because of much smaller size compared to Ruby on Rails it is also called microframework 5 Some notable companies and institutions that use Sinatra include Apple 6 BBC 7 the British Government s Government Digital Service 8 LinkedIn 9 the National Security Agency 10 Engine Yard Heroku GitHub 11 Stripe and Songbird 12 Travis CI provides much of the financial support for Sinatra s development 3 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 5 13 Mizerany and Heroku s Adam Wiggins introduced and discussed Sinatra at RubyConf 2008 14 Contents 1 Example 2 References 3 Further reading 4 External linksExample edit usr bin env ruby require sinatra get do redirect to hello World end get hello name do Hello params name endReferences edit Error Unable to display the reference properly See the documentation for details Taking the Stage Sinatra Up and Running Safaribooksonline com Retrieved 2016 10 21 a b Sinatra About Sinatra Readme a b Carlson Lucas Richardson Leonard 2015 Ruby Cookbook Recipes for Object Oriented Scripting O Reilly Media ISBN 9781449373696 Open Source software used by Apple BBC Zeitgeist Archived 2010 11 28 at the Wayback Machine O Reilly radar With GOV UK British government redefines the online government platform JRubyfying LinkedIn s Front end NSA Careers The Programmer Archived 2013 12 16 at the Wayback Machine Open Source Almost Everything 22 November 2011 Retrieved 16 January 2015 Sinatra in The Wild Save Data Automatically with Ruby on Rails retrieved 2022 05 11 Confreaks RubyConf 2008 Archived 2009 03 31 at the Wayback MachineFurther reading editHarris Alan Haase Konstantin November 2011 Sinatra Up And Running First ed O Reilly Media p 120 ISBN 978 1 4493 0423 2 Harper Dan Singing with Sinatra nettuts Sinatra Book External links editOfficial website nbsp Retrieved from https en wikipedia org w index php title Sinatra software amp oldid 1159782428, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.