Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
Rack for Beginner Cam Huynh @huynhquancam
Slide 2
Slide 2 text
Cam Huynh
[email protected]
Slide 3
Slide 3 text
What’s this talk about? ● WHAT’s Rack and HOW to Rack? ● Is config.ru redundant? ● Rack middlewares. ● Live coding session.
Slide 4
Slide 4 text
I am Grandpa, ask me anything Before the steering wheels, how do people drive cars?
Slide 5
Slide 5 text
IAG, AMA Well, someone tried this.
Slide 6
Slide 6 text
IAG, AMA Some even more creative
Slide 7
Slide 7 text
IAG, AMA Finally, we ended up with this genius invention.
Slide 8
Slide 8 text
Life before Rack This steering wheel problem happened to the Ruby world too!
Slide 9
Slide 9 text
Life after Rack
Slide 10
Slide 10 text
Even when you switch the web-server
Slide 11
Slide 11 text
Or the ruby framework
Slide 12
Slide 12 text
What’s Rack? Rack provides a minimal interface between web-servers that support Ruby and Ruby frameworks.
Slide 13
Slide 13 text
What’s Rack? ● Web servers: Puma, Phusion Passenger, Unicorn, Thin, etc. ● Ruby applications: Sinatra, Grape, Ruby on Rails, Hanami, etc.
Slide 14
Slide 14 text
How to Rack?
Slide 15
Slide 15 text
How to Rack? rackup -p 9200
Slide 16
Slide 16 text
Rack Middleware Rack provides an easy way to chain the middlewares / components to customize the way your requests / response behaves
Slide 17
Slide 17 text
No content
Slide 18
Slide 18 text
Live coding
Slide 19
Slide 19 text
Questions