Working with Modular Applications & Rack

Sinatra 1.4.6    |    Beginner
  • 15 videos | 1h 15m 54s
  • Includes Assessment
  • Earns a Badge
Rating 4.0 of 2 users Rating 4.0 of 2 users (2)
In common with Ruby frameworks, Sinatra uses the Rack interface. Learn how to use the Rack middleware with Sinatra, as well as how to generate subclasses to create and work with modular Sinatra applications.

WHAT YOU WILL LEARN

  • 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

IN THIS COURSE

  • 4m 46s
    Upon completion of this video, you will be able to describe Rack and port an application defined using Sinatra to Rack. FREE ACCESS
  • 5m 33s
    During this video, you will learn how to use Rack middleware with Sinatra. FREE ACCESS
  • Locked
    3.  Dispatching in Sinatra
    4m 2s
    In this video, you will learn about the dispatch action that Sinatra uses when it is running as middleware. FREE ACCESS
  • Locked
    4.  Rack HTTP Authentication
    5m 43s
    In this video, you will learn how to implement authentication in a Sinatra application using Rack. FREE ACCESS
  • Locked
    5.  Rack Testing
    9m 22s
    In this video, you will use Rack::Test to test a Sinatra application. FREE ACCESS
  • Locked
    6.  Creating a Subclass
    4m 13s
    In this video, find out how to define Sinatra::Base and use it to create a subclass and run the application in Sinatra using run!. FREE ACCESS
  • Locked
    7.  Subclass Architecture
    7m 10s
    Upon completion of this video, you will be able to describe how Sinatra can subclass subclasses and how all elements, routes, settings, and methods are inherited by all subclasses. FREE ACCESS
  • Locked
    8.  Working with SubClasses
    4m 44s
    In this video, you will learn how to use inheritance in Sinatra to build a controller architecture. FREE ACCESS
  • Locked
    9.  Running a Modular Application
    3m 53s
    In this video, find out how to run a Sinatra-based modular application by checking that the file containing the modular code has been executed and using config.ru. FREE ACCESS
  • Locked
    10.  Dynamic SubClasses
    2m 35s
    In this video, you will use Sinatra.new() to generate an anonymous modular application and show how to inherit from a different superclass. FREE ACCESS
  • Locked
    11.  Helpers and Extensions in Modular Applications
    5m 32s
    During this video, you will learn how to use helpers and extensions in modular Sinatra applications. FREE ACCESS
  • Locked
    12.  Chaining Classes
    3m 38s
    Learn how to use a Sinatra application as middleware in front of another application. FREE ACCESS
  • Locked
    13.  Cascading Classes
    3m 33s
    In this video, you will learn how to use Rack::Cascade to cascade applications as an alternative to using a middleware chain. FREE ACCESS
  • Locked
    14.  Using a Router to Combine Classes
    4m 52s
    During this video, you will learn how to use a Rack router to combine apps as an alternative to chaining or cascading apps. FREE ACCESS
  • Locked
    15.  Working with Return Values
    6m 19s
    Upon completion of this video, you will be able to describe how to work with return values in modular applications, including Sinatra applications used as Rack middleware. FREE ACCESS

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.6 of 198 users Rating 4.6 of 198 users (198)
Rating 4.7 of 35 users Rating 4.7 of 35 users (35)