Learning Sinatra

Sudeep Agarwal, Manoj Sehrawat

  • 出版商: Packt Publishing
  • 出版日期: 2016-04-28
  • 售價: $1,340
  • 貴賓價: 9.5$1,273
  • 語言: 英文
  • 頁數: 164
  • 裝訂: Paperback
  • ISBN: 1849519307
  • ISBN-13: 9781849519304
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Key Features

  • Exploit Sinatra to design a web application
  • Integrate external, internal, and inline CSS and use some popular CSS frameworks
  • Deploy an application onto your own server or on a cloud application platform

Book Description

Sinatra is a Ruby framework that is widely used in the Industry. You can use it to make a single-page web app or a large-scale one. With the increased online footprint, you can create and deploy your own application.

Whether you are brand-new to online learning or a seasoned expert, this book will provide you with the skills you need to successfully create, customize, and deploy a Sinatra application. Starting from the beginning, this book will cover how to install Ruby and Sinatra, construct the back-end, design and customize the front-end layout, and utilize the innovative and user-friendly features of ORMs. By sequentially working through the steps in each chapter, you will quickly master Sinatra's features to create your own application.

With ample screenshots and code that offers a play-by-play account of how to build an application, Learning Sinatra will ensure your success with this cutting-edge framework.

What you will learn

  • Install and set up Ruby and Sinatra
  • Work with layouts and template routes
  • Extend the code to include CSS in different ways
  • Create projects and understand MVC
  • Design the front-end with Twitter Bootstrap
  • Use the MySQL/SQLite gem to communicate with databases
  • Implement sessions that can be used across multiple pages
  • Utilize the innovative and user-friendly features of ORMs

About the Author

Sudeep Agarwal is a site reliability engineer at Inmobi with a total of four years of experience in the industry. He was with Directi for 3 years right after finishing his education from NIT Trichy. At Directi, he was a part of the team that wrote one of the most widely used in-house web-based applications; this is where his interest in Sinatra started and he used it to write some of his personal projects. Although he is not writing a lot of web applications at Inmobi, he is still contributing to one of the ORMs―Ruby Object Mapper.

Manoj Sehrawat is an enthusiastic software developer who loves coding and learning new things. He has around 5 years of experience in software development. Manoj holds an MCA from KIIT, Gurgaon and a BCA from IGNOU. Currently, he is the associate technical lead at TravelTriangle. TravelTriangle is India's first full stack holiday marketplace that connects travelers with verified travel agents. Before joining TravelTriangle, Manoj was working with StudyPad and Fizzy Software Pvt Ltd as a senior software developer. His primary focus is the design and construction of scalable and optimized web applications and APIs using a Ruby-based development stack with frameworks such as Ruby on Rails, Sinatra, and others. He is passionate about refactoring, optimizing code, and building scalable solutions with simplicity.

Table of Contents

  1. Introduction to Sinatra
  2. Introduction to Ruby
  3. Hello World
  4. Modeling the Backend
  5. Handling HTTP Requests
  6. Designing the Frontend Layout
  7. Handling User Data
  8. Connecting to a Database
  9. Authentication and Authorization
  10. Deploying the App