Ruby Monstas Session 19 Agenda Recap Networking: The Internet - - PowerPoint PPT Presentation

ruby monstas
SMART_READER_LITE
LIVE PREVIEW

Ruby Monstas Session 19 Agenda Recap Networking: The Internet - - PowerPoint PPT Presentation

Ruby Monstas Session 19 Agenda Recap Networking: The Internet HTTP: The foundation of the web Sinatra: Simple way to create web apps Exercises Recap RubyGems & Bundler What is RubyGems? What is Bundler? Rubygems & Bundler


slide-1
SLIDE 1

Ruby Monstas

Session 19

slide-2
SLIDE 2

Agenda

Recap Networking: The Internet HTTP: The foundation of the web Sinatra: Simple way to create web apps Exercises

slide-3
SLIDE 3

Recap

slide-4
SLIDE 4

RubyGems & Bundler

What is RubyGems? What is Bundler?

slide-5
SLIDE 5

Rubygems & Bundler

RubyGems: Ruby’s package manager Bundler: Ruby’s dependency manager

slide-6
SLIDE 6

Networking

The Internet

slide-7
SLIDE 7

Networking

slide-8
SLIDE 8

Networking

slide-9
SLIDE 9

Networking

Ethernet Wireless Fiber

slide-10
SLIDE 10

Networking: Benefits?

slide-11
SLIDE 11

Networking: Benefits

  • Simple and convenient way to transfer data
  • It’s cost efficient
  • Always available
slide-12
SLIDE 12

Networking: Tradeoff?

slide-13
SLIDE 13

Networking: Tradeoff

  • Unrestricted & unauthorised access

WASN’T ME WASN’T ME

slide-14
SLIDE 14

Networking: The Internet

slide-15
SLIDE 15

Networking: The Internet Protocol (IP)

slide-16
SLIDE 16

Networking: The Internet Protocol (IP)

slide-17
SLIDE 17

Networking: The Internet Protocol (IP)

DATA HEADER Source: 192.168.1.1 Target: 192.168.1.31 Metadata

slide-18
SLIDE 18

Networking: The Internet Protocol (IP)

slide-19
SLIDE 19

IP: Facts

  • Consistent way of communicating
  • Decoupled from manufactures
  • Regardless technology (cable, wireless, optical)
  • The standard for communication in networks
slide-20
SLIDE 20

HTTP: Evolution of the Internet

slide-21
SLIDE 21

HTTP: Evolution of the Internet

Client Server

slide-22
SLIDE 22

HTTP: Computing model evolution

Client Server

Request Response

slide-23
SLIDE 23

HTTP: How it works

Uniform Resource Locator Request Method Media Type

slide-24
SLIDE 24

HTTP: How it works

slide-25
SLIDE 25

HTTP: Uniform Resource Locator (URL)

rubymonstas.ch DOMAIN NAME RESOURCE /curriculum

slide-26
SLIDE 26

HTTP: Method & Format

GET REQUEST METHOD FORMAT .HTML

slide-27
SLIDE 27

HTTP: How it works

slide-28
SLIDE 28

HTTP

Example

slide-29
SLIDE 29

Sinatra

A quick way to create web applications in Ruby.

slide-30
SLIDE 30

Sinatra: Map routes to code

Sinatra

Request Response

get '/' do 'Hello World' end

slide-31
SLIDE 31

Time to practice

slide-32
SLIDE 32

Resources

https://en.wikipedia.

  • rg/wiki/Internet_Protocol

https://en.wikipedia.

  • rg/wiki/Hypertext_Transfer_Protocol

http://www.sinatrarb.com/intro.html