Book description
Take advantage of Sinatra, the Ruby-based web application library and domain-specific language used by Heroku, GitHub, Apple, Engine Yard, and other prominent organizations. With this concise book, you will quickly gain working knowledge of Sinatra and its minimalist approach to building both standalone and modular web applications.
Sinatra serves as a lightweight wrapper around Rack middleware, with syntax that maps closely to functions exposed by HTTP verbs, which makes it ideal for web services and APIs. If you have experience building applications with Ruby, you’ll quickly learn language fundamentals and see under-the-hood techniques, with the help of several practical examples. Then you’ll get hands-on experience with Sinatra by building your own blog engine.
- Learn Sinatra’s core concepts, and get started by building a simple application
- Create views, manage sessions, and work with Sinatra route definitions
- Become familiar with the language’s internals, and take a closer look at Rack
- Use different subclass methods for building flexible and robust architectures
- Put Sinatra to work: build a blog that takes advantage of service hooks provided by the GitHub API
Publisher resources
Table of contents
- Sinatra: Up and Running
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
- Preface
- 1. Taking the Stage
- 2. Fundamentals
- 3. A Peek Behind the Curtain
- 4. Modular Applications
- 5. Hands On: Your Own Blog Engine
- About the Authors
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
- Copyright
Product information
- Title: Sinatra: Up and Running
- Author(s):
- Release date: November 2011
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449323974
You might also like
book
Mastering Ruby Closures
The road to Ruby mastery is paved with blocks, procs, and lambdas. To be a truly …
book
JRuby Cookbook
If you're interested in JRuby, you probably don't need a tutorial on Ruby, Rails, or Java …
book
Docker for Rails Developers
Docker does for DevOps what Rails did for web development--it gives you a new set of …
book
Refactoring in Ruby
The First Hands-On, Practical, All-Ruby Refactoring Workbook! Refactoring–the art of improving the design of existing code–has …