1
00:00:02,120 --> 00:00:04,720
Now, before we dive into the actual steps

2
00:00:04,720 --> 00:00:09,070
of taking our first website and bringing it online,

3
00:00:09,070 --> 00:00:11,290
let's clarify some terms.

4
00:00:11,290 --> 00:00:15,670
We had the terms hosting and deployment in the last lecture.

5
00:00:15,670 --> 00:00:17,400
What's that about?

6
00:00:17,400 --> 00:00:20,160
Well, deploying a website simply means

7
00:00:20,160 --> 00:00:22,300
that you take your website code,

8
00:00:22,300 --> 00:00:25,960
so your HTML, CSS, and maybe JavaScript code,

9
00:00:25,960 --> 00:00:27,460
which we don't have yet

10
00:00:27,460 --> 00:00:29,990
but which we will learn about later in the course,

11
00:00:29,990 --> 00:00:33,220
and you move that on a remote machine,

12
00:00:33,220 --> 00:00:37,010
a so-called server that then serves that site,

13
00:00:37,010 --> 00:00:41,810
so that code to visitors that might be visiting your website

14
00:00:41,810 --> 00:00:44,520
by entering a certain address,

15
00:00:44,520 --> 00:00:47,530
because keep in mind how the web works.

16
00:00:47,530 --> 00:00:51,850
You have users using their mobile phones or laptops

17
00:00:51,850 --> 00:00:54,690
or computers who enter some address

18
00:00:54,690 --> 00:00:58,360
and that then leads the browser to send a request

19
00:00:58,360 --> 00:01:02,290
to that remote machine, to that so-called server,

20
00:01:02,290 --> 00:01:07,290
which stores the HTML and CSS and maybe also JavaScript code

21
00:01:07,930 --> 00:01:12,480
that then will be sent back with a response to the browser

22
00:01:12,480 --> 00:01:15,510
so that the browser is able to show something

23
00:01:15,510 --> 00:01:18,560
onto the screen by reading those instructions

24
00:01:18,560 --> 00:01:20,763
that were stored on a server.

25
00:01:21,600 --> 00:01:23,950
Since that's how the web works

26
00:01:23,950 --> 00:01:27,060
and we now know how to write these instructions,

27
00:01:27,060 --> 00:01:30,080
at least regarding HTML and CSS,

28
00:01:30,080 --> 00:01:33,600
we now need to take these instructions as a web developer

29
00:01:33,600 --> 00:01:36,350
and move them onto such a server

30
00:01:36,350 --> 00:01:40,950
and connect that server with an address like amazon.com

31
00:01:40,950 --> 00:01:43,820
so that visitors can visit that website

32
00:01:43,820 --> 00:01:47,680
and see our code in action, so to say.

33
00:01:47,680 --> 00:01:49,630
And that's what deployment

34
00:01:49,630 --> 00:01:52,430
or deploying a website is all about.

35
00:01:52,430 --> 00:01:54,920
And hosting is very related.

36
00:01:54,920 --> 00:01:57,860
Hosting simply means that some remote machine,

37
00:01:57,860 --> 00:02:01,120
so that server, stores that website code

38
00:02:01,120 --> 00:02:02,890
and serves it to visitors

39
00:02:02,890 --> 00:02:05,590
so that this remote machine is configured

40
00:02:05,590 --> 00:02:09,160
such that it's able to deal with incoming requests

41
00:02:09,160 --> 00:02:13,180
and then send back your stored website code

42
00:02:13,180 --> 00:02:17,650
as a response to the browser that sent that request.

43
00:02:17,650 --> 00:02:21,390
And if you want your website to be visible to other people,

44
00:02:21,390 --> 00:02:24,450
if you wanna ensure that other people can visit your website

45
00:02:24,450 --> 00:02:27,980
and see it by entering some address in their browsers,

46
00:02:27,980 --> 00:02:30,430
you need to host/deploy,

47
00:02:30,430 --> 00:02:34,320
it's pretty much the same as you learned, your website.

48
00:02:34,320 --> 00:02:37,370
So you need such a remote machine that holds your code

49
00:02:37,370 --> 00:02:39,140
and sends it to browsers

50
00:02:39,140 --> 00:02:42,003
that sent requests for your website.

51
00:02:43,110 --> 00:02:45,310
So if you enter amazon.com,

52
00:02:45,310 --> 00:02:48,420
a request is sent to Amazon's servers.

53
00:02:48,420 --> 00:02:50,390
And since Amazon, the company,

54
00:02:50,390 --> 00:02:54,190
took its website code and moved it onto a server,

55
00:02:54,190 --> 00:02:57,170
your browser is able to send the request there

56
00:02:57,170 --> 00:02:59,830
and the server bought by Amazon,

57
00:02:59,830 --> 00:03:03,330
which hosts that website created by Amazon,

58
00:03:03,330 --> 00:03:07,130
is then able to send back that website,

59
00:03:07,130 --> 00:03:11,290
these HTML and CSS instructions.

60
00:03:11,290 --> 00:03:13,853
And we're now going to do this ourselves.

