1
00:00:00,330 --> 00:00:06,720
And we're going to start Section four with the general info of how the Web works, more specifically

2
00:00:06,720 --> 00:00:13,360
how we exchange data on the Web and we're going to do that with the help of few slides.

3
00:00:13,880 --> 00:00:20,160
Now, if you're one of the people who's already reached the daily limit, I hear you once we're done

4
00:00:20,160 --> 00:00:25,820
with these suckers, I promise will mostly actually write code for the remainder of the course.

5
00:00:26,370 --> 00:00:32,130
I do believe, though, that before we build an actual Web server, it's crucial for us to understand

6
00:00:32,130 --> 00:00:33,810
how it works under the hood.

7
00:00:34,170 --> 00:00:38,970
And that way we'll have a clearer understanding of what tasks need to be done.

8
00:00:39,420 --> 00:00:45,150
If something is if you can always go back to the slides, you already know where they are located.

9
00:00:45,420 --> 00:00:51,660
And also as we're going to be progressing with the course from time to time, I will swing back to them

10
00:00:51,990 --> 00:00:54,590
when I will need to emphasize a specific point.

11
00:00:55,110 --> 00:01:00,090
With that said, let's talk about how we exchange data on the Web.

12
00:01:01,230 --> 00:01:06,680
I have to say that if you're watching this video, you know how to use a Web browser.

13
00:01:07,110 --> 00:01:13,650
But under the hood, the way it works, we open up the laptop, we go to our favorite search engine,

14
00:01:14,010 --> 00:01:17,460
and then we type the URL, basically the Web address.

15
00:01:18,010 --> 00:01:21,150
And that way we are performing a request.

16
00:01:22,020 --> 00:01:29,850
And we are performing a request to the server that is responsible serving of those resources.

17
00:01:30,330 --> 00:01:37,780
For example, when you look for CNN dot com, you're looking for a server that has those resources and

18
00:01:37,780 --> 00:01:44,640
then that server sends you back the response and the same work with YouTube, the same works with John

19
00:01:44,640 --> 00:01:46,890
Smith, dot com or whatever.

20
00:01:47,310 --> 00:01:48,690
So you just pick a resource.

21
00:01:48,990 --> 00:01:51,990
You say, hey, can I get this data?

22
00:01:52,260 --> 00:01:58,490
And then server who is responsible for those resources just sends you back the response.

23
00:01:58,920 --> 00:02:05,820
Now, that is not using HTP protocol and that's why these ones are called HTP messages.

24
00:02:06,390 --> 00:02:16,290
So the user sends the HTP request message and then the server sends the HTP response message.

25
00:02:16,710 --> 00:02:19,880
And that's how we exchange data on the Web.

26
00:02:20,250 --> 00:02:28,770
And for the remainder of the course, we'll be responsible for building such web server, using node

27
00:02:29,040 --> 00:02:31,530
and more specifically, Xpress.

28
00:02:31,560 --> 00:02:38,160
Now talk about why we use Express as well as show you a few examples later on in the course.

29
00:02:38,160 --> 00:02:45,240
But for now, just remember, yes, we'll use node, but in order to make our lives easier, we'll use

30
00:02:45,240 --> 00:02:48,390
the framework by the name of ExpressJet.

31
00:02:48,780 --> 00:02:54,810
And lastly, I would just want to mention that even though name server definitely sounds way cooler

32
00:02:55,110 --> 00:03:03,540
than the computer, at the end of the day, they're just computers whose job is to always make that

33
00:03:03,540 --> 00:03:04,780
resource available.

34
00:03:05,490 --> 00:03:08,100
So, yes, those are computers.

35
00:03:08,370 --> 00:03:10,140
And yes, there are some differences.

36
00:03:10,140 --> 00:03:15,170
For example, they most likely don't have the graphical interface or Tegui.

37
00:03:15,720 --> 00:03:19,410
And also they're probably much bigger than your laptop.

38
00:03:19,800 --> 00:03:28,590
But at the end of the day, they are computers whose job is to always make sure that that resource is

39
00:03:28,590 --> 00:03:33,960
available, because imagine if you would have a server that only works from eight to five.

40
00:03:34,600 --> 00:03:41,130
So if you go to your website at six o'clock at night, you cannot access the resource.

41
00:03:41,790 --> 00:03:45,310
Probably that's not the service that you would pick.

42
00:03:45,660 --> 00:03:47,940
So next time when someone asks you.

43
00:03:49,020 --> 00:03:54,870
If it rains, does the cloud still works, you know what to answer, because the end the day when we

44
00:03:54,870 --> 00:04:02,340
talk about cloud cloud is just a bunch of these servers, a bunch of these computers connected together.

