1
00:00:00,360 --> 00:00:07,710
Your videos ago, while discussing unrest, I mentioned crud, create, read, update and destroy or

2
00:00:07,710 --> 00:00:14,790
delete, and I want to quickly show you how is that going to look like with our current manual setup?

3
00:00:15,360 --> 00:00:19,890
I fully understand that some parts might look really silly, especially the read one.

4
00:00:20,250 --> 00:00:25,950
But in my opinion, it's important that we start with the basics and hopefully that way we'll have a

5
00:00:25,950 --> 00:00:32,530
better understanding of overall principles when we need to implement crud in our API.

6
00:00:33,000 --> 00:00:36,610
So what does CRUD means in our manual setup?

7
00:00:36,900 --> 00:00:39,690
Well, first we want to create an item, correct?

8
00:00:40,080 --> 00:00:44,010
So in here we just find any of the collections.

9
00:00:44,260 --> 00:00:48,600
And in this case I'm going to stick with product since I already have some items over here.

10
00:00:49,020 --> 00:00:56,280
And then we simply go with insert document and again, we just come up with the type and some kind of

11
00:00:56,280 --> 00:00:56,670
value.

12
00:00:57,000 --> 00:01:06,070
And I think I'm going to go with another name and I'll just leave it as a string and I'll say Test Gorod,

13
00:01:06,900 --> 00:01:09,780
I want to document and I'm done.

14
00:01:10,260 --> 00:01:16,800
So we're done with the first part where we created an item on the second one, reading them while we

15
00:01:16,800 --> 00:01:21,240
simply stare at the screen and we can see that we have three items.

16
00:01:21,540 --> 00:01:25,560
So I can see that I have three product again in our application.

17
00:01:25,810 --> 00:01:32,520
That just means that we will be able to read the documents that we have in our database when we were

18
00:01:32,520 --> 00:01:33,330
working with GUI.

19
00:01:33,720 --> 00:01:35,420
It's very straightforward.

20
00:01:35,430 --> 00:01:37,110
When are you just staring at the screen?

21
00:01:37,440 --> 00:01:43,800
Then we want to update them and then with a manual approach, we just look for this little pencil and

22
00:01:43,800 --> 00:01:45,980
we say that we want to change some powers around here.

23
00:01:46,350 --> 00:01:50,950
So in here I could go with another item and I'll say I agree.

24
00:01:51,300 --> 00:01:56,010
So now, of course, I have successfully updated the array as well.

25
00:01:56,320 --> 00:01:56,730
You know what?

26
00:01:57,060 --> 00:02:04,580
Let's also add one more, and I'll call this orange, then I update and I'm done with that part as well.

27
00:02:04,950 --> 00:02:12,480
So not only we can create read part, we can also update and then the last one delete when we simply

28
00:02:12,480 --> 00:02:13,740
look for another icon.

29
00:02:13,960 --> 00:02:17,610
In this case, we are looking for the trash icon.

30
00:02:17,880 --> 00:02:18,900
So we just click here.

31
00:02:19,110 --> 00:02:21,530
And now, of course we remove the item.

32
00:02:21,900 --> 00:02:27,090
So that's the basic approach of crud in our manual setup.

