Working with Modular Applications & Rack

Sinatra 1.4.6
  • 15 Videos | 1h 21m 54s
  • Includes Assessment
  • Earns a Badge
Likes 1 Likes 1
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

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

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

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE