Course: Creating Web Applications with Sinatra

$109.00
$131.89 incl. vat

duration: 8 hours |

Language: English (US) |

access duration: 90 days |

Details

In this training you will learn the basics of Sinatra. You will learn how to install and how you make use of Sinatra in combination with the Thin Server. Finally you will learn how to create a REST service with Sinatra and how to deploy Sinatra applications using Heroku and Apache Passenger. Among the subjects covered are Unix, Datamapper, Ruby, HTTP, entity tags, RSS feed, Rack and far more.

Result

After finishing this course you are familiar with opportunities that needed to develop web applications based on Sinatra.

Prerequisites

Basic knowledge of programming is required.

Target audience

Web Developer

Content

Creating Web Applications with Sinatra

8 hours

Sinatra Fundamentals

  • start the course
  • define Sinatra and describe its characteristics
  • describe how to install Sinatra and the Thin server on UNIX based platforms, and create and run a simple application
  • declare routes using various route verbs in Sinatra
  • configure routes to share the same handler, use parameters, including query string parameters and wildcards
  • describe how the first match is used and how routes can be matched using regular expressions in Sinatra
  • halt, pass, trigger, and redirect requests in Sinatra
  • use filters to modify requests and responses in Sinatra
  • deliver static content from default public folder and other locations without using routing
  • define inline and external templates to work with views in Sinatra
  • use instance variables to pass data to views, and use filters in Sinatra
  • generate and use ActiveRecord models in a Sinatra application
  • generate and use DataMapper models in a Sinatra application
  • configure Sinatra to send attachments to a client
  • configure content streaming including finite streaming in a Sinatra application
  • configure finite streaming in a Sinatra application
  • use the not_found and error blocks to handle errors in Sinatra
  • describe application/class scope, request/instance scope, delegation scope, and associated bindings in Sinatra applications
  • create extensions in Sinatra
  • create and use helper methods in modules in Sinatra
  • use the configure block to apply configuration in Sinatra
  • use set: or enable:key or the settings object to apply settings at class or top level in Sinatra
  • use the headers method in Sinatra to set HTTP headers in response objects to provide information to servers and clients
  • access information via the request object in Sinatra
  • set cache headers, cache control, and content expiration in Sinatra with the headers, cache_control, and expires helpers
  • define and generate ETags (entity tags) including weak ETags
  • enable and destroy sessions using the configure block and session.clear in Sinatra
  • set cookies in Sinatra
  • manage Sinatra dependencies with Bundler
  • develop and configure a basic application in Sinatra

Working with Sinatra

  • start the course
  • create and use helper methods in blocks in Sinatra
  • use Sinatra's registered method to combine helpers and extensions in an application
  • compare how to dynamically change the binding of a block in Sinatra by using instance_eval or by dynamically creating a method from the block, getting the unbound method object, and removing the method
  • implement a Rails style partial handler in a Sinatra application
  • use the CoffeeScript template in Sinatra applications
  • use RSS feed templates with builder in Sinatra applications
  • generate and use a MongoMapper model in a Sinatra application
  • connect to different databases such as SQLite and Mongo from a Sinatra application
  • describe Rack and port an application defined using Sinatra to Rack
  • use Rack middleware with Sinatra
  • demonstrate the dispatch action that Sinatra uses when running as middleware
  • implement Rack authentication in a Sinatra application
  • using Rack::Test to test a Sinatra application
  • define Sinatra::Base and use it to create a subclass and run the application in Sinatra using run
  • describe how Sinatra can subclass subclasses and describe how all elements, routes, settings, and methods are inherited by all subclasses
  • use inheritance in Sinatra to build a controller architecture
  • run a Sinatra-based modular application checking that the file containing the modular code has been executed and using config.ru
  • use Sinatra.new() to generate an anonymous modular application and show to inherit from a different superclass
  • use helpers and extensions in modular Sinatra applications
  • use a Sinatra application as middleware in front of another application
  • use Rack::Cascade to cascade applications as an alternative to a middleware chain
  • use a Rack router to combine apps as an alternative to chaining or cascading
  • describe how to work with return values in modular applications including Sinatra applications used as Rack middleware
  • create a REST service using Sinatra
  • use the Sinatra asset-pack gem to manage assets in an application
  • use the shotgun gem to enable Sinatra code to be reloaded automatically
  • use Heroku to deploy a Sinatra application
  • use Apache and Passenger to deploy Sinatra applications
  • create a REST service in Sinatra

Course options

We offer several optional training products to enhance your learning experience. If you are planning to use our training course in preperation for an official exam then whe highly recommend using these optional training products to ensure an optimal learning experience. Sometimes there is only a practice exam or/and practice lab available.

Optional practice exam (trial exam)

To supplement this training course you may add a special practice exam. This practice exam comprises a number of trial exams which are very similar to the real exam, both in terms of form and content. This is the ultimate way to test whether you are ready for the exam. 

Optional practice lab

To supplement this training course you may add a special practice lab. You perform the tasks on real hardware and/or software applicable to your Lab. The labs are fully hosted in our cloud. The only thing you need to use our practice labs is a web browser. In the LiveLab environment you will find exercises which you can start immediatelyThe lab enviromentconsist of complete networks containing for example, clients, servers,etc. This is the ultimate way to gain extensive hands-on experience. 

WHY_ICTTRAININGEN

Via ons opleidingsconcept bespaar je tot 80% op trainingen

Start met leren wanneer je wilt. Je bepaalt zelf het gewenste tempo

Spar met medecursisten en profileer je als autoriteit in je vakgebied.

Ontvang na succesvolle afronding van je cursus het officiële certificaat van deelname van Icttrainingen.nl

Krijg inzicht in uitgebreide voortgangsinformatie van jezelf of je medewerkers

Kennis opdoen met interactieve e-learning en uitgebreide praktijkopdrachten door gecertificeerde docenten

Orderproces

Once we have processed your order and payment, we will give you access to your courses. If you still have any questions about our ordering process, please refer to the button below.

read more about the order process

What is included?

Certificate of participation Yes
Monitor Progress Yes
Award Winning E-learning Yes
Mobile ready Yes
Sharing knowledge Unlimited access to our IT professionals community
Study advice Our consultants are here for you to advice about your study career and options
Study materials Certified teachers with in depth knowledge about the subject.
Service World's best service

Platform

Na bestelling van je training krijg je toegang tot ons innovatieve leerplatform. Hier vind je al je gekochte (of gevolgde) trainingen, kan je eventueel cursisten aanmaken en krijg je toegang tot uitgebreide voortgangsinformatie.

Life Long Learning

Follow multiple courses? Read more about our Life Long Learning concept

read more

Contact us

Need training advise? Contact us!


contact