Working with Modular Applications & Rack
Sinatra 1.4.6
| Beginner
- 15 Videos | 1h 15m 54s
- Includes Assessment
- Earns a Badge
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 Rackuse Rack middleware with Sinatrademonstrate the dispatch action that Sinatra uses when running as middlewareimplement Rack authentication in a Sinatra applicationusing Rack::Test to test a Sinatra applicationdefine 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 subclassesuse 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.ruuse Sinatra.new() to generate an anonymous modular application and show to inherit from a different superclassuse helpers and extensions in modular Sinatra applicationsuse a Sinatra application as middleware in front of another applicationuse Rack::Cascade to cascade applications as an alternative to a middleware chainuse a Rack router to combine apps as an alternative to chaining or cascadingdescribe how to work with return values in modular applications including Sinatra applications used as Rack middleware
IN THIS COURSE
-
1.Running an Application with Rack4m 46sUP NEXT
-
2.Using Rack Middleware5m 33s
-
3.Dispatching in Sinatra4m 2s
-
4.Rack HTTP Authentication5m 43s
-
5.Rack Testing9m 22s
-
6.Creating a Subclass4m 13s
-
7.Subclass Architecture7m 10s
-
8.Working with SubClasses4m 44s
-
9.Running a Modular Application3m 53s
-
10.Dynamic SubClasses2m 35s
-
11.Helpers and Extensions in Modular Applications5m 32s
-
12.Chaining Classes3m 38s
-
13.Cascading Classes3m 33s
-
14.Using a Router to Combine Classes4m 52s
-
15.Working with Return Values6m 19s
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.