1
00:00:00,330 --> 00:00:06,330
And once we're familiar with the setup, let's kick things into gear and actually start working on a

2
00:00:06,330 --> 00:00:12,840
project and the first thing that you need to do is to navigate to the star folder.

3
00:00:13,260 --> 00:00:19,320
Again, you are looking for the third project, the task manager, and then more specifically, the

4
00:00:19,320 --> 00:00:20,100
star folder.

5
00:00:20,460 --> 00:00:29,610
And I think the fastest way to navigate there is by just typing speed and grab the star folder and drop

6
00:00:29,610 --> 00:00:29,930
it here.

7
00:00:30,360 --> 00:00:36,210
And then once you're in a star before you do anything, make sure that you install all the packages.

8
00:00:36,210 --> 00:00:39,930
And of course, we do that by running NPM install.

9
00:00:40,350 --> 00:00:48,000
And once all the packages are in place, in order to speed up the Nordman, we need to go with an RPM

10
00:00:48,000 --> 00:00:48,480
start.

11
00:00:48,720 --> 00:00:51,890
Unless, of course you want to change it to different command.

12
00:00:52,230 --> 00:00:57,720
If that's the case, then make the changes and then use that command instead.

13
00:00:58,020 --> 00:00:59,700
So in my case, I'll just wait a little bit.

14
00:00:59,880 --> 00:01:01,320
I mean, shouldn't take too long.

15
00:01:01,660 --> 00:01:03,580
There's not that many packages in there.

16
00:01:03,840 --> 00:01:08,820
And then once I have all the packages in place and of course, like I said, we're going to go with

17
00:01:08,820 --> 00:01:10,260
NPM start.

18
00:01:10,650 --> 00:01:15,000
And if you see task manager in the console, we are in good shape.

19
00:01:15,400 --> 00:01:21,420
And I would set up the most basic express server, which essentially is just going to be listening for

20
00:01:21,420 --> 00:01:26,390
one route forward, slash below and it's going to be on a port three thousand.

21
00:01:26,580 --> 00:01:32,790
Now, if you want to jog your memory and to strap yourself, just pause the video and resume once you're

22
00:01:32,790 --> 00:01:33,030
done.

23
00:01:33,330 --> 00:01:36,930
If you don't want to do that, just keep on watching the video.

24
00:01:37,350 --> 00:01:44,340
And the way we set up the most basic express server is by setting up a variable by the name of Express

25
00:01:44,670 --> 00:01:46,700
that will set it equal to require.

26
00:01:46,930 --> 00:01:49,470
Now it's going to be equal to our express package.

27
00:01:49,790 --> 00:01:51,000
Then we need to initialize it.

28
00:01:51,000 --> 00:01:51,950
So we go with that.

29
00:01:52,110 --> 00:01:56,280
And that is equal to express and we invoke it online.

30
00:01:56,280 --> 00:02:02,850
Unlike the previous examples, will actually set up a variable by the name of port and for the time

31
00:02:02,850 --> 00:02:06,720
being will hardcoded two or three thousand potentially.

32
00:02:06,930 --> 00:02:11,700
That is going to be more code and I'll talk about the reasoning later.

33
00:02:11,730 --> 00:02:15,000
So for now, just set up the variable and we'll be in good shape.

34
00:02:15,420 --> 00:02:18,090
And here we need to go with that list.

35
00:02:18,090 --> 00:02:22,750
And of course and first thing we pass in is the port and the second is the console.

36
00:02:23,310 --> 00:02:24,270
So we go here.

37
00:02:25,140 --> 00:02:29,520
We had some kind of text and I'm going to go with server is listening.

38
00:02:30,420 --> 00:02:36,990
And port online, of course, we pass in the port portfolio, and I always like to add those three dots

39
00:02:36,990 --> 00:02:42,210
as well, so I'll do it in this case and then I'll open up my console.

40
00:02:42,390 --> 00:02:48,030
The moment I have server is listening on Port three thousand, which is just awesome.

41
00:02:48,210 --> 00:02:51,450
So now it's also set up that one alonely route.

42
00:02:51,870 --> 00:02:58,650
So above the port, I'm going to go with my comment route and then we'll just say, Abdulbaset, so

43
00:02:58,650 --> 00:03:00,990
this is going to be a get request now.

44
00:03:00,990 --> 00:03:02,430
What is going to be the URL?

45
00:03:02,460 --> 00:03:06,030
Well, we'll go with ports and hello.

46
00:03:06,190 --> 00:03:07,200
So that's going to be the path.

47
00:03:07,500 --> 00:03:13,980
And then, of course, we have the callback function once the user hits the route and we're looking

48
00:03:13,980 --> 00:03:14,670
for Iraq.

49
00:03:14,670 --> 00:03:23,580
And so request and response and we simply want to go with Araz that send and then we'll pass task manager

50
00:03:24,330 --> 00:03:25,320
an app.

51
00:03:25,710 --> 00:03:26,970
So I'll say it here.

52
00:03:27,120 --> 00:03:31,110
I'll navigate through the browser and I'm looking for PT..

53
00:03:31,110 --> 00:03:34,380
Three thousand, of course, and then we'll go with hello.

54
00:03:34,830 --> 00:03:42,060
And if we see task manager app displayed in the browser, then of course we are off to the great start.

