Instant Sinatra Starter
暫譯: 即時 Sinatra 入門指南

Joe Yates

  • 出版商: Packt Publishing
  • 出版日期: 2013-05-26
  • 售價: $1,020
  • 貴賓價: 9.5$969
  • 語言: 英文
  • 頁數: 70
  • 裝訂: Paperback
  • ISBN: 1782168214
  • ISBN-13: 9781782168218
  • 海外代購書籍(需單獨結帳)

商品描述

Your practical guide to getting started with Sinatra to quickly create simple web applications

Overview

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results
  • Set up a Sinatra project
  • Deploy your project to the Web
  • Learn about the advanced features of Sinatra

In Detail

Sinatra is a free and open source software web application library and domain-specific language written in Ruby. It provides both the beginner and the experienced professional with a tool for creating simple, yet powerful web applications.

Instant Sinatra Starter is a practical, hands-on guide that provides you with the necessary knowledge to get started from scratch.Including all the necessary steps to put together a Sinatra application and get it online, we will also learn all that you need to know to make your application all it can and should be.

We'll learn how a web request is received, pre-processed by Rack and Sinatra middleware, then handed to the application. Learn how to build a response via templates, then hand the response back to be sent to the client.

Later we will learn to configure your application for your specific needs and handle more complex requests and responses. With Instant Sinatra Starter, we’ll explore the essentials to get our first Sinatra application online.

What you will learn from this book

  • Set up a development environment for Sinatra
  • Set up a Sinatra project
  • Create a Git repository for a Sinatra project
  • Create HTML templates with Slim
  • Deploy a Sinatra project to Heroku
  • Handle requests for different formats (HTML and JSON)
  • Receive file uploads and store them
  • Keep your application secure from common attacks

Approach

Get to grips with a new technology, understand what it is and what it can do for you, and then get to work with the most important features and tasks. Written as a practical guide, Instant Sinatra Starter will help you create a simple web app in no time at all.

Who this book is written for

Instant Sinatra Starter is great if you are looking to get started with Sinatra for web development. Some previous experience with Ruby would be beneficial though not necessary for this step-by-step exploration of Sinatra and the world of web development.

商品描述(中文翻譯)

您的實用指南,幫助您快速使用 Sinatra 創建簡單的網頁應用程式

概述
- 立即學習新知!一本短小、快速、專注的指南,提供即時結果
- 設置 Sinatra 專案
- 將您的專案部署到網路上
- 了解 Sinatra 的進階功能

詳細內容
Sinatra 是一個免費且開源的網頁應用程式庫和特定領域語言,使用 Ruby 編寫。它為初學者和經驗豐富的專業人士提供了一個創建簡單但強大的網頁應用程式的工具。

《Instant Sinatra Starter》是一本實用的、動手操作的指南,提供您從零開始所需的知識。包括組建 Sinatra 應用程式並將其上線的所有必要步驟,我們還將學習您需要知道的所有內容,以使您的應用程式發揮其應有的功能。

我們將學習如何接收網頁請求,如何通過 Rack 和 Sinatra 中介軟體進行預處理,然後將其交給應用程式。學習如何通過模板構建響應,然後將響應返回以發送給客戶端。

稍後我們將學習如何根據您的特定需求配置應用程式,並處理更複雜的請求和響應。通過《Instant Sinatra Starter》,我們將探索使我們的第一個 Sinatra 應用程式上線的基本要素。

您將從本書中學到的內容
- 設置 Sinatra 的開發環境
- 設置 Sinatra 專案
- 為 Sinatra 專案創建 Git 倉庫
- 使用 Slim 創建 HTML 模板
- 將 Sinatra 專案部署到 Heroku
- 處理不同格式的請求(HTML 和 JSON)
- 接收文件上傳並存儲它們
- 保護您的應用程式免受常見攻擊

方法
掌握一項新技術,了解它是什麼以及它能為您做什麼,然後開始使用最重要的功能和任務。《Instant Sinatra Starter》作為一本實用指南,將幫助您迅速創建一個簡單的網頁應用程式。

本書的讀者對象
如果您希望開始使用 Sinatra 進行網頁開發,《Instant Sinatra Starter》非常適合您。不過,對 Ruby 有一些先前的經驗會是有益的,但對於這本逐步探索 Sinatra 和網頁開發的書籍來說並不是必需的。