1
00:00:00,270 --> 00:00:05,730
And once we have out of the edit and the lead job functionalities like I already mentioned earlier,

2
00:00:06,090 --> 00:00:09,570
we'll actually switch gears and work on a stats page.

3
00:00:10,110 --> 00:00:16,890
And once we're done with that, we'll swing back to all jobs and complete the search functionality now

4
00:00:16,890 --> 00:00:19,830
for both the stats and the search form.

5
00:00:20,400 --> 00:00:25,470
It would actually be very useful if we were to have more jobs since that way.

6
00:00:25,860 --> 00:00:32,280
It's going to be easier to set up all of our upcoming functionalities like, for example, pagination,

7
00:00:32,970 --> 00:00:33,810
the chat data.

8
00:00:34,260 --> 00:00:42,180
Now, just to showcase that in the complete application for one of my dummy users, I created way more

9
00:00:42,180 --> 00:00:42,570
jobs.

10
00:00:43,110 --> 00:00:45,090
So in this case, I have 78.

11
00:00:45,360 --> 00:00:48,870
I'm not where you can clearly see that nice imagination.

12
00:00:49,200 --> 00:00:53,400
And I hope we will, paginated 10 jobs per page.

13
00:00:53,400 --> 00:00:58,020
But I mean, the code is going to be there so you can always set up differently.

14
00:00:58,860 --> 00:01:04,410
So let's say, if I navigate to page number four, then I display these jobs and hopefully you see where

15
00:01:04,410 --> 00:01:04,790
I'm going.

16
00:01:05,519 --> 00:01:06,990
And the same goes for stats.

17
00:01:07,590 --> 00:01:11,490
Or technically, yeah, we can set it up with just three jobs.

18
00:01:11,970 --> 00:01:14,610
So I was going to be pending interview and then declined.

19
00:01:14,610 --> 00:01:22,480
But I think it just looks nicer if we have way more data, and it's definitely the case for charts where

20
00:01:22,480 --> 00:01:25,110
it will display last six months.

21
00:01:25,650 --> 00:01:32,280
So essentially how many applications we have sent out in the last six months, and this is the case

22
00:01:32,280 --> 00:01:34,770
where I don't want to display just one job.

23
00:01:35,280 --> 00:01:38,730
It's much more nicer if I have some actual data.

24
00:01:39,300 --> 00:01:46,020
Now, since we have the add jam functionality, you can definitely add the manually one by one.

25
00:01:46,560 --> 00:01:52,350
It is definitely an option, but I'm going to take a different route and instead I'm going to use the

26
00:01:52,350 --> 00:01:54,420
site by the name of macro.

27
00:01:55,020 --> 00:02:00,630
And yes, the link is in the read me so you can always navigate here.

28
00:02:00,840 --> 00:02:04,200
And essentially, it's a place where you can get random data.

29
00:02:04,200 --> 00:02:09,840
And what's really, really, really, really, really cool is the fact that you have tons of options

30
00:02:09,840 --> 00:02:14,280
over here as far as the types, so you can get some nice data.

31
00:02:14,640 --> 00:02:17,010
And also, it's very specific.

32
00:02:17,610 --> 00:02:24,830
For example, we can add a date and time that matches exactly what we have in the Mongo DB.

33
00:02:25,680 --> 00:02:28,140
This just makes our life way easier.

34
00:02:28,560 --> 00:02:33,690
So once you navigate here, you'll see the screen and we'll start everything from scratch.

35
00:02:34,120 --> 00:02:35,850
And here's what I'm trying to do.

36
00:02:36,660 --> 00:02:42,160
So if we go back to the job on the model, these are properties that we're setting up.

37
00:02:42,960 --> 00:02:47,100
So now what I want to do is set them up in the macro.

38
00:02:47,460 --> 00:02:50,760
So make sure that the proper names are exact.

39
00:02:51,480 --> 00:02:56,850
Otherwise, you'll get some errors and the setup is not going to work for you.

40
00:02:57,300 --> 00:03:02,670
So one by one, let's add them up and I'm going to start over here by pretty much removing all of them.

41
00:03:03,240 --> 00:03:04,890
And let's start with a company.

42
00:03:05,520 --> 00:03:06,780
So I'm going to go here with the company.

43
00:03:07,120 --> 00:03:12,750
When we click here on a type, I notice, like I said, you have tons of options over here now.

44
00:03:12,750 --> 00:03:15,480
In my case, I'm going to go with fake and then company name.

45
00:03:15,780 --> 00:03:20,070
So that is what I'm going to run and we're going to go with another field.

46
00:03:20,400 --> 00:03:22,240
And I'm looking for position.

47
00:03:22,740 --> 00:03:24,720
And here let's go for a job title.

48
00:03:24,930 --> 00:03:25,770
I'm going to click on.

49
00:03:26,880 --> 00:03:34,290
And then we go with job and then title, so we select this one then instead of the status, which I

50
00:03:34,290 --> 00:03:41,700
believe is the next one, we're going to go with a job location and then we'll set up the statuses,

51
00:03:41,700 --> 00:03:47,240
the job types and created by it just because we'll use the same thing when we use the custom list.

52
00:03:47,260 --> 00:03:49,750
So I think it just makes a little bit more sense.

53
00:03:49,770 --> 00:03:52,260
So we'll switch the order around.

54
00:03:52,710 --> 00:03:54,520
So we're going to go with another field.

55
00:03:54,960 --> 00:04:02,850
I'm looking for the job and then make sure that it's also capital because we'll be inserting this in

56
00:04:02,850 --> 00:04:05,100
a database and I'll do that programmatically.

57
00:04:05,100 --> 00:04:08,220
But still, the property names need to match.

58
00:04:08,340 --> 00:04:11,410
Let me repeat that property names need to match.

59
00:04:11,420 --> 00:04:16,220
So in this case, if it's job location, make sure that it's also the same over here.

60
00:04:17,149 --> 00:04:21,170
And in here, we're looking for a city basically will get some.

61
00:04:22,100 --> 00:04:27,500
Dummy values for two cities, one, let's go with another field, and this is the case where we use

62
00:04:27,500 --> 00:04:31,070
that custom list because remember, we are using them.

63
00:04:31,550 --> 00:04:37,470
So for the job that we have full time, part time remote and internship and those are the possible values.

64
00:04:37,490 --> 00:04:45,110
Now they don't have this as their type and therefore in here we'll go with the job one type one.

65
00:04:45,110 --> 00:04:47,900
Let's look for that custom list custom list.

66
00:04:48,610 --> 00:04:51,950
And of course, I need to learn how to spell that custom list.

67
00:04:52,550 --> 00:04:54,800
And then we just need to pass here the items.

68
00:04:54,830 --> 00:05:00,110
Now one thing here is that we don't need to add those quotes.

69
00:05:00,710 --> 00:05:03,170
So let me go back to the job type.

70
00:05:04,010 --> 00:05:06,090
And first, I'm going to select that.

71
00:05:06,090 --> 00:05:10,640
All right, but we have to remove those quotation marks.

72
00:05:10,710 --> 00:05:12,080
At least that's what I was doing.

73
00:05:12,080 --> 00:05:14,600
So I'm going to do the same thing right now as well.

74
00:05:15,290 --> 00:05:18,110
So sure, there are no quotation marks.

75
00:05:18,800 --> 00:05:21,320
And the same thing will do for status.

76
00:05:21,710 --> 00:05:24,830
So let's add this one, and let's add another field.

77
00:05:25,200 --> 00:05:29,180
And remember, we are going for status, still going to be a custom list.

78
00:05:29,960 --> 00:05:31,850
But in this case, I'm looking for these values.

79
00:05:33,300 --> 00:05:34,680
Vinyl copy and paste.

80
00:05:35,840 --> 00:05:40,460
And same deal that's remove those marks one by one.

81
00:05:41,480 --> 00:05:41,920
More than.

82
00:05:43,300 --> 00:05:47,530
And once we have the status next up, we have the created by.

83
00:05:47,950 --> 00:05:55,300
So that's the user that creates job because we still want to tie this to one user, since that is how

84
00:05:55,300 --> 00:05:56,230
our application works.

85
00:05:57,210 --> 00:06:01,170
And effectively, we'll do the same thing where we'll use the custom list.

86
00:06:01,740 --> 00:06:04,050
But in this case, we'll just pass one value.

87
00:06:04,980 --> 00:06:11,400
So all those jobs will be tied to that specific user the way we set it up.

88
00:06:11,640 --> 00:06:18,330
First, I want to go back to the postman when I walk in, and once I'll do that, I'll get back my token.

89
00:06:19,110 --> 00:06:21,360
And then I want to go back to all the drums.

90
00:06:21,600 --> 00:06:27,600
Now this point, John has two jobs, and what I'm interested is the John's idea here.

91
00:06:27,990 --> 00:06:31,410
So that's the one that we want to add in the macro.

92
00:06:31,710 --> 00:06:34,680
So let's copy that one and add another field.

93
00:06:34,830 --> 00:06:39,930
Remember, this is created and by custom list same deal.

94
00:06:39,930 --> 00:06:42,000
And then we just copy this one value.

95
00:06:42,660 --> 00:06:46,890
So now I'll be setting up those jobs with John's idea.

96
00:06:47,310 --> 00:06:50,310
And lastly, I also want to add creative ad.

97
00:06:51,210 --> 00:06:52,680
Now, why do I want to add that?

98
00:06:53,190 --> 00:06:59,280
Well, because when it comes to the charts we are displaying here last six months.

99
00:06:59,520 --> 00:07:03,360
So how many applications we send out in order to do that?

100
00:07:03,780 --> 00:07:05,070
We need to have different dates.

101
00:07:05,910 --> 00:07:10,230
So if I'm just going to create all those jobs at the same time, it's not going to make any sense.

102
00:07:10,650 --> 00:07:15,750
I'm just going to have, I don't know whatever, 75 jobs with the same date.

103
00:07:16,350 --> 00:07:23,790
And that's why we'll actually provide created that, which remember, is provided by the time stamps

104
00:07:24,150 --> 00:07:25,050
just to showcase that.

105
00:07:25,410 --> 00:07:27,600
Let's go back over here to the postman.

106
00:07:27,900 --> 00:07:34,230
And you asked this creator that essentially this just means when the job was created.

107
00:07:34,650 --> 00:07:39,720
Now what's really cool is the fact that when we're adding this programmatically, which we're going

108
00:07:39,720 --> 00:07:40,740
to do in next video.

109
00:07:41,700 --> 00:07:48,660
If we provide created out with the value, it will automatically set it up.

110
00:07:48,690 --> 00:07:55,140
So even though we are creating that job right now, we can add, let's say, a past date to it.

111
00:07:55,440 --> 00:07:56,550
Hopefully that makes sense.

112
00:07:57,090 --> 00:08:03,660
And now let me go back to the mackerel and again, make sure that the field name is exactly the same.

113
00:08:03,660 --> 00:08:06,060
So we're looking for creative that.

114
00:08:06,930 --> 00:08:09,180
In this case, we're looking for a date.

115
00:08:09,630 --> 00:08:13,290
So we're going to go here with date time and it's really up to you.

116
00:08:13,560 --> 00:08:19,950
You can go with one year, but since there's going to be something that I want to showcase as far as

117
00:08:19,950 --> 00:08:24,030
months and years in the mango, I'll actually go back.

118
00:08:24,480 --> 00:08:24,990
I don't know.

119
00:08:25,020 --> 00:08:25,950
Maybe two years.

120
00:08:26,610 --> 00:08:29,790
So we're going to go here with 2019.

121
00:08:30,360 --> 00:08:34,470
And then when it comes to format, we want to go here with this show.

122
00:08:34,740 --> 00:08:40,470
And again, this is not cool thing where we actually can match exactly what the Mongo DB has.

123
00:08:40,830 --> 00:08:42,419
So we're going to go here with our show.

124
00:08:43,320 --> 00:08:47,430
And then when it comes to format, first of all, will go with John.

125
00:08:47,940 --> 00:08:52,470
And then if you want, you can go a thousand lines, meaning thousand rows.

126
00:08:53,030 --> 00:08:58,560
And essentially, that means that we will create those thousand jobs over here.

127
00:08:58,890 --> 00:09:00,150
But in my case, am I going to do that?

128
00:09:00,150 --> 00:09:02,100
Like I said, I'm going to be that drastic.

129
00:09:02,100 --> 00:09:06,520
I'm going to go with just 75 and I'm not going to include values.

130
00:09:06,810 --> 00:09:08,550
Least that's the option that I took.

131
00:09:08,940 --> 00:09:14,370
Now we will download, but for the time being, I just want to preview what is going to be the result.

132
00:09:14,880 --> 00:09:20,100
And essentially, this should look almost the same that we currently have in apportionment.

133
00:09:21,200 --> 00:09:27,920
Where we have a company position, job, location, job type, status created by our childish values

134
00:09:27,920 --> 00:09:31,010
of shame, and surely it is John's idea.

135
00:09:31,310 --> 00:09:32,900
And when it was created.

136
00:09:33,140 --> 00:09:36,290
And now notice how these values are different.

137
00:09:36,830 --> 00:09:42,050
And once we have this one place, then we'll right away go with download data again.

138
00:09:42,410 --> 00:09:45,800
You can do that in the previous screen, but we can also do it over here.

139
00:09:46,220 --> 00:09:47,360
We download the data.

140
00:09:47,360 --> 00:09:48,140
We get back.

141
00:09:48,470 --> 00:09:50,020
MOC data, Jason.

142
00:09:50,570 --> 00:09:52,940
And now let me navigate to my downloads.

143
00:09:53,910 --> 00:09:58,980
And in here, I'm looking for Armonk data, but I will right away rename it.

144
00:09:59,690 --> 00:10:03,320
Mark, we're going to go with mark and hyphen baydar.

145
00:10:03,360 --> 00:10:07,050
That's just my preference when it comes to the naming.

146
00:10:07,560 --> 00:10:12,750
And then we want to drag this sucker to our job before, and we want to place it in the road.

147
00:10:13,290 --> 00:10:16,190
Since we'll use it in a server, we want to place road.

148
00:10:16,770 --> 00:10:21,510
So let's get it over here and then navigate back to my project.

149
00:10:21,900 --> 00:10:27,750
And as a side note, if you want to certify this, essentially if you want to see more powers, you

150
00:10:27,750 --> 00:10:31,590
have just saved file, have a code automatically certify that.

151
00:10:31,950 --> 00:10:33,750
So essentially, it's not going to be minified.

152
00:10:34,080 --> 00:10:36,780
And if this is what you have in your project?

153
00:10:36,810 --> 00:10:37,260
Awesome.

154
00:10:37,410 --> 00:10:39,300
Now we're ready to move on to the next step.

155
00:10:39,570 --> 00:10:44,100
Where will programmatically add them to our MongoDB database?

