1
00:00:02,120 --> 00:00:03,560
Now, I did already mention

2
00:00:03,560 --> 00:00:07,689
what NodeJS is and why we need a server-side language

3
00:00:07,689 --> 00:00:11,330
like NodeJS in the previous course section.

4
00:00:11,330 --> 00:00:15,577
Therefore, I only briefly want to summarize it here again,

5
00:00:15,577 --> 00:00:19,890
NodeJS is a language or to be very precise,

6
00:00:19,890 --> 00:00:24,890
a JavaScript Runtime that we can install on any computer.

7
00:00:25,690 --> 00:00:28,460
It allows us to execute JavaScript code

8
00:00:28,460 --> 00:00:30,310
outside of the browser.

9
00:00:30,310 --> 00:00:32,450
And up to this point in the course,

10
00:00:32,450 --> 00:00:35,120
if we ignored the previous course section,

11
00:00:35,120 --> 00:00:38,770
we only knew that browsers are able

12
00:00:38,770 --> 00:00:41,370
to execute JavaScript code.

13
00:00:41,370 --> 00:00:44,210
Well, it turns out that if we installed

14
00:00:44,210 --> 00:00:46,720
this extra NodeJS tool,

15
00:00:46,720 --> 00:00:49,830
any computer can execute JavaScript code.

16
00:00:49,830 --> 00:00:52,760
And therefore, we can use JavaScript

17
00:00:52,760 --> 00:00:55,240
in conjunction with this NodeJS

18
00:00:55,240 --> 00:00:58,920
runtime tool to write code that executes

19
00:00:58,920 --> 00:01:03,060
on a server since any computer can be a server.

20
00:01:03,060 --> 00:01:06,470
And that allows us to write server-side code

21
00:01:06,470 --> 00:01:10,120
that will for example, generate HTML instructions

22
00:01:10,120 --> 00:01:13,850
dynamically, or reach out to a file system

23
00:01:13,850 --> 00:01:17,707
or a database with JavaScript and NodeJS.

24
00:01:19,233 --> 00:01:23,200
Now I do have a complete deep dive course about NodeJS

25
00:01:23,200 --> 00:01:24,930
in case you want to learn more,

26
00:01:24,930 --> 00:01:28,090
but in this and the next course sections,

27
00:01:28,090 --> 00:01:30,350
we got many sections on this actually.

28
00:01:30,350 --> 00:01:33,010
You will learn how to use NodeJS,

29
00:01:33,010 --> 00:01:37,510
and how you can write such Backend code with NodeJS.

30
00:01:37,510 --> 00:01:40,980
Now, in order to write NodeJS code and write

31
00:01:40,980 --> 00:01:44,729
server-side JavaScripted Backend code with NodeJS,

32
00:01:44,729 --> 00:01:48,850
you first of all, need to install NodeJS.

33
00:01:48,850 --> 00:01:52,457
And for this, you should visit NodeJs.org.

34
00:01:52,457 --> 00:01:57,457
Here you'll find download links for the latest version

35
00:01:57,700 --> 00:02:00,570
and the long-term stability version.

36
00:02:00,570 --> 00:02:03,830
The difference between these two versions is that the LTS,

37
00:02:03,830 --> 00:02:07,840
the long-term support version simply is an older version,

38
00:02:07,840 --> 00:02:12,244
which still receives active support like security fixes.

39
00:02:12,244 --> 00:02:15,490
Whereas that latest version is well,

40
00:02:15,490 --> 00:02:17,756
as the name implies the very latest version

41
00:02:17,756 --> 00:02:20,700
with all the latest new features.

42
00:02:20,700 --> 00:02:23,060
As sometimes new versions introduce

43
00:02:23,060 --> 00:02:26,120
new features or break old features.

44
00:02:26,120 --> 00:02:29,660
That's why we have both a stable older version,

45
00:02:29,660 --> 00:02:32,030
and the latest version to choose from.

46
00:02:32,030 --> 00:02:35,600
Overall, it is worth noting though that NodeJS

47
00:02:35,600 --> 00:02:38,900
is a very stable and well-maintained runtime.

48
00:02:38,900 --> 00:02:41,480
And therefore you can download and use

49
00:02:41,480 --> 00:02:44,270
the latest version here for this course.

50
00:02:44,270 --> 00:02:48,222
Even if you see a different higher version number

51
00:02:48,222 --> 00:02:51,380
at the point of time you're viewing this video.

52
00:02:51,380 --> 00:02:54,530
What you will learn in this and the next course sections

53
00:02:54,530 --> 00:02:57,230
will still apply to that version.

54
00:02:57,230 --> 00:02:59,600
So you're not missing anything just because

55
00:02:59,600 --> 00:03:03,690
I'm using this version in this course right now.

56
00:03:03,690 --> 00:03:04,630
All that being said,

57
00:03:04,630 --> 00:03:08,250
you can now download this current, this latest version here.

58
00:03:08,250 --> 00:03:10,740
And by default, it should already select

59
00:03:10,740 --> 00:03:13,140
the version for your operating system.

60
00:03:13,140 --> 00:03:14,270
If it doesn't do that,

61
00:03:14,270 --> 00:03:16,220
you can click on other downloads,

62
00:03:16,220 --> 00:03:20,400
and here you'll find a Windows installer, a macOS installer.

63
00:03:20,400 --> 00:03:22,770
And you'll also find Binaries for Linux

64
00:03:22,770 --> 00:03:25,190
which you can download and use.

65
00:03:25,190 --> 00:03:29,180
But by default, the correct one should be preselected here.

66
00:03:29,180 --> 00:03:30,800
Now, if I do download this,

67
00:03:30,800 --> 00:03:33,620
it starts to download and downloads this installer

68
00:03:33,620 --> 00:03:34,810
on my system.

69
00:03:34,810 --> 00:03:39,340
And that's the case, both for macOS and Windows.

70
00:03:39,340 --> 00:03:44,040
Once the download finished, we can execute this installer.

71
00:03:44,040 --> 00:03:47,520
And here you see the macOS installer that started up,

72
00:03:47,520 --> 00:03:50,140
and you can just walk through all the steps

73
00:03:50,140 --> 00:03:51,297
that are shown here,

74
00:03:51,297 --> 00:03:53,523
and it's the same for windows.

75
00:03:54,720 --> 00:03:58,810
So here I'll continue, accept the license agreement,

76
00:03:58,810 --> 00:04:01,863
and basically accept all the default settings.

77
00:04:05,100 --> 00:04:07,770
Enter my password if prompted for,

78
00:04:07,770 --> 00:04:10,490
and install NodeJS with that.

79
00:04:10,490 --> 00:04:12,340
And as mentioned, it's the same on Windows.

80
00:04:12,340 --> 00:04:15,580
You also can just accept all the default settings here

81
00:04:15,580 --> 00:04:18,420
and then finish installation and close the installer

82
00:04:18,420 --> 00:04:19,563
once you're done.

83
00:04:20,589 --> 00:04:25,520
With that, we got the NodeJS tool installed on our system,

84
00:04:25,520 --> 00:04:29,720
and we can now use that tool to execute JavaScript code

85
00:04:29,720 --> 00:04:34,050
that may then also use extra NodeJS features,

86
00:04:34,050 --> 00:04:36,850
since NodeJS is the tool executing the code.

87
00:04:36,850 --> 00:04:38,330
Instead of the browser,

88
00:04:38,330 --> 00:04:40,720
we can use any JavaScript features

89
00:04:40,720 --> 00:04:42,893
that are supported by NodeJS.

90
00:04:44,220 --> 00:04:46,460
Now, which features are supported?

91
00:04:46,460 --> 00:04:48,230
That's something which you can find

92
00:04:48,230 --> 00:04:52,010
in the official Docs here on NodeJS.org.

93
00:04:52,010 --> 00:04:55,539
There, you can choose your NodeJS version.

94
00:04:55,539 --> 00:04:57,490
By default the latest one,

95
00:04:57,490 --> 00:05:00,370
and then click on API reference documentation.

96
00:05:00,370 --> 00:05:03,190
And you will learn about all the different parts,

97
00:05:03,190 --> 00:05:05,740
all the different packages you could say,

98
00:05:05,740 --> 00:05:08,230
that make up the NodeJS tool.

99
00:05:08,230 --> 00:05:10,940
And these are simply different packages that expose

100
00:05:10,940 --> 00:05:14,703
different features that you can use in your JavaScript code.

101
00:05:15,670 --> 00:05:18,970
Adjust as we can interact with the Dom in the browser.

102
00:05:18,970 --> 00:05:20,310
We now, for example,

103
00:05:20,310 --> 00:05:22,760
can interact with the file system here

104
00:05:22,760 --> 00:05:25,703
when executing our code with NodeJS.

105
00:05:26,830 --> 00:05:27,850
Now of course,

106
00:05:27,850 --> 00:05:30,770
going through these stocks can be very overwhelming,

107
00:05:30,770 --> 00:05:32,940
especially if you're just getting started,

108
00:05:32,940 --> 00:05:36,190
and they offer these Docs are a great backup,

109
00:05:36,190 --> 00:05:38,360
something to come back to,

110
00:05:38,360 --> 00:05:41,920
but we will learn NodeJS step-by-step together

111
00:05:41,920 --> 00:05:45,380
over the next lectures and course sections,

112
00:05:45,380 --> 00:05:48,097
because there are many important features to explore,

113
00:05:48,097 --> 00:05:50,390
many features and patterns

114
00:05:50,390 --> 00:05:53,140
which you are going to use over and over again.

115
00:05:53,140 --> 00:05:55,120
And that's there for what we are going

116
00:05:55,120 --> 00:05:57,443
to dive in throughout this course.

