Cover image for Instant Sinatra Starter.
Instant Sinatra Starter.
Title:
Instant Sinatra Starter.
Author:
Yates, Joe.
ISBN:
9781782168225
Personal Author:
Edition:
1st ed.
Physical Description:
1 online resource (69 pages)
Contents:
Instant Sinatra Starter -- Instant Sinatra Starter -- Credits -- About the Author -- About the Reviewers -- www.packtpub.com -- Support files, eBooks, discount offers and more -- packtlib.packtpub.com -- Why Subscribe? -- Free Access for Packt account holders -- 1. Sinatra Starter -- So, what is Sinatra? -- What is a web framework? -- Sinatra or Ruby on Rails? -- Who's using it? -- Minimalistic -- Education -- Performance -- Prototyping -- Source code -- Installation -- Step 1 - what do I need? -- Step 2 - installing library dependencies -- Installing a C compiler -- Installing external packages -- Step 3 - installing Ruby -- Installing a Ruby Version Manager -- Installing Ruby -- Step 4 - installing Bundler -- Step 5 - installing Git -- Step 6 - registering for online accounts -- Code -- Application deployment -- And that's it -- Quick start - your first Sinatra application -- Step 1 - creating the application -- Logging -- Step 2 - putting the application under version control with Git -- Step 3 - deploying the application -- Step 4 - page layout with Slim -- Step 5 - styling -- Step 6 - development setup -- Step 7 - testing the application -- Top 18 features you need to know about -- Sinatra application types -- Classic applications -- Modular style applications -- Runtime environments -- Project layout -- Static files -- Templates -- Middleware -- Sessions -- Session security -- GET requests -- Handling forms -- Uploading files -- Protecting your application -- CSRF -- How a CSRF attack works -- Implementing CSRF protection for your application -- Handlers, routes, and parameters -- Handlers -- Routes -- First to last -- Parameters -- The params variable -- block parameters -- Query parameters -- Wildcard or splat parameters -- Optional parameters -- Regular expressions -- Route conditions -- The provides condition -- Templating.

Inline templates -- HTML templates -- Slim -- Layouts -- Sending e-mail -- Logging -- How to write logs to a file -- Request -- Response -- Status -- Using a database -- Setup -- Create a database -- Insert an address -- The Sinatra DSL -- Helpers -- Settings -- People and places you should get to know -- Official sites -- Articles and tutorials -- Community -- Blogs -- Twitter.
Abstract:
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. 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.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: