1
00:00:00,310 --> 00:00:08,640
As far as the setup, we're looking for zero eight sendmail, then we have the final and astar, so

2
00:00:08,640 --> 00:00:09,830
we're looking for the star.

3
00:00:10,230 --> 00:00:13,800
So I'm going to go KDDI, the line starter.

4
00:00:14,280 --> 00:00:19,760
And once we are here, we have comptrollers folder with just one send emails.

5
00:00:19,770 --> 00:00:22,350
So this is where we'll set up all of our logic.

6
00:00:22,620 --> 00:00:26,790
We are DBE folder, but this one here is just for showcase.

7
00:00:27,120 --> 00:00:30,710
Essentially, we're not going to connect with databased in this project.

8
00:00:30,720 --> 00:00:36,960
Of course we have the errors one as well as the middleware, but I mean, we will set them up in objets,

9
00:00:36,960 --> 00:00:40,050
but it's really not going to be the case where we'll use them.

10
00:00:40,050 --> 00:00:50,220
Not much objets with pretty typical logic where we got data and processing errors express as well as

11
00:00:50,220 --> 00:00:51,930
not found an error handler.

12
00:00:52,260 --> 00:00:58,150
We use Express JSON, even though technically in this project we're not going to rely on that.

13
00:00:58,740 --> 00:01:04,890
This is also just here for Showcase the abdulbaset get where we have the one both of the middleware

14
00:01:04,980 --> 00:01:08,220
for not found and our handler, the port.

15
00:01:08,580 --> 00:01:10,830
I think I'm going to switch back to three thousand.

16
00:01:11,490 --> 00:01:14,880
So most likely, if you're looking at your project, you have three thousand.

17
00:01:15,270 --> 00:01:19,110
And like I just said, we're not going to use the database on here.

18
00:01:19,110 --> 00:01:21,750
We simply have to start where we go with that.

19
00:01:21,750 --> 00:01:22,110
Listen.

20
00:01:22,380 --> 00:01:28,470
And then the port value now, before we can run the IMGs, we need to install.

21
00:01:28,750 --> 00:01:34,830
So we're going to go here with an IBM install and then we're going to go with NPM Start.

22
00:01:35,340 --> 00:01:40,680
And in this project actually didn't set up the route because we only have one controller.

23
00:01:41,040 --> 00:01:48,510
So we might as well set that up right away in a controller and then imported in the Americas and just

24
00:01:48,510 --> 00:01:51,030
set it up here below the gate.

25
00:01:51,330 --> 00:01:52,870
So this is going to be our home route.

26
00:01:52,890 --> 00:01:54,360
So let me start out here.

27
00:01:54,660 --> 00:02:02,160
So we're going to navigate to my browser and I'm going to look for localhost and three thousand.

28
00:02:02,160 --> 00:02:05,820
Yep, I can see the email project and the way it's going to work.

29
00:02:05,820 --> 00:02:14,040
We will set up a link to another page to send page, but it's still going to be a GETRUDE.

30
00:02:14,370 --> 00:02:18,390
So that way we don't need to implement the postman and all of that.

31
00:02:18,750 --> 00:02:23,070
And the way we'll set that up we have here, I'm not get and right.

32
00:02:23,400 --> 00:02:25,380
The hearing, one alleges, set up that link.

33
00:02:25,560 --> 00:02:27,570
So I won't be cheating a little bit.

34
00:02:27,840 --> 00:02:32,400
And we're going to go with a link to a send email.

35
00:02:32,820 --> 00:02:36,010
And here I want to say, for example.

36
00:02:36,300 --> 00:02:38,250
So that's the route we haven't set up yet.

37
00:02:38,580 --> 00:02:40,310
We'll do that in a second.

38
00:02:40,920 --> 00:02:44,100
So let's add our link here and right below it.

39
00:02:44,250 --> 00:02:50,640
Not just go with app dot get and the route is forward, slash, send.

40
00:02:51,060 --> 00:02:56,900
And as far as the setup, technically you can code everything here in Abcess Nomikos.

41
00:02:56,910 --> 00:02:59,520
I'll still set up everything in the controller.

42
00:02:59,820 --> 00:03:03,540
So in here I have sent the email, I just set it up as a function.

43
00:03:03,750 --> 00:03:04,560
So send.

44
00:03:05,500 --> 00:03:14,620
E mail and we have their sink, we have Eric and arrest for time being, let just send back some kind

45
00:03:14,620 --> 00:03:15,640
of dummy value.

46
00:03:16,030 --> 00:03:19,360
So I'm going to go with Araz, that Sunde and not send the email.

47
00:03:19,370 --> 00:03:20,080
My apologies.

48
00:03:20,380 --> 00:03:22,180
We're going to go with that send.

49
00:03:22,510 --> 00:03:28,600
And we're looking for send e-mail, Phuoc, which is going to stand for functionality.

50
00:03:28,900 --> 00:03:35,770
And then all the way to the bottom, we're going to go with exports and my apologies module module that

51
00:03:35,770 --> 00:03:36,400
exports.

52
00:03:36,640 --> 00:03:38,980
And in this case, I'm not going to export it as an object.

53
00:03:38,980 --> 00:03:43,390
I'm just going to go with send email and back and jazz.

54
00:03:44,380 --> 00:03:50,350
Anywhere where you would like, I guess in my case, I'm going to go above both of my middle was going

55
00:03:50,350 --> 00:03:51,940
to go with send email.

56
00:03:52,990 --> 00:03:54,250
It's going to be my controller.

57
00:03:54,610 --> 00:03:56,250
So I'm going to go with require.

58
00:03:56,500 --> 00:03:59,490
We're going to levels up or maybe only one.

59
00:03:59,500 --> 00:04:00,820
So we have controllers here.

60
00:04:01,030 --> 00:04:03,790
We have send email that.

61
00:04:03,820 --> 00:04:09,400
Let's scroll down, copy and set it up over here as the controller.

62
00:04:09,670 --> 00:04:16,000
So now if I go back to my project and if I refresh, I have this tiny link, I click here and I see

63
00:04:16,000 --> 00:04:17,910
the send email func.

64
00:04:18,250 --> 00:04:21,310
So this is where I will set up all the functionality.

65
00:04:21,700 --> 00:04:29,110
And once we have the general structure in place now, I can start exploring email, sending with a node

66
00:04:29,110 --> 00:04:29,230
A.

