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
The Programmer's Brain
The Programmer’s Brain unlocks the way we think about code. It offers scientifically sound techniques that …
book
Learning Go
Go is rapidly becoming the preferred language for building web services. While there are plenty of …
book
Domain Modeling Made Functional
You want increased customer satisfaction, faster development cycles, and less wasted work. Domain-driven design (DDD) combined …
book
Eloquent Ruby
It’s easy to write “correct” Ruby code. But it’s far harder to gain the fluency needed …