WEBVTT

00:03.640 --> 00:05.130
Hated every one that they shared.

00:05.140 --> 00:08.920
And yes, I know really long journey, but it was really worth it.

00:08.950 --> 00:12.620
Now we have created two method for adding the product and getting all the products.

00:12.640 --> 00:15.520
Now it's time that we see that how many mistakes we have made.

00:15.520 --> 00:18.510
That is, it means we are going to test out this stuff.

00:18.520 --> 00:20.590
So these are the two methods that we have created.

00:20.590 --> 00:22.330
Now it's time to root them up.

00:22.330 --> 00:25.510
So the first ad product is only going to be available for admin.

00:25.540 --> 00:30.040
Of course, only admin can add more products into the application and get all products.

00:30.070 --> 00:32.980
It's going to be available for all the users.

00:32.980 --> 00:36.760
We are going to define a separate method for getting all the products for admin itself.

00:36.760 --> 00:38.140
It's going to be rather easier.

00:38.140 --> 00:42.970
We won't be handling that much of functionality for search and all of that, although we can and we

00:42.970 --> 00:44.500
can still use the same method.

00:44.500 --> 00:46.480
But I would love to create another one.

00:46.480 --> 00:50.740
So let's go into the roots and let's go ahead and see that how we are going to work on with that is

00:50.740 --> 00:51.730
logged in and custom role.

00:51.730 --> 00:53.170
They are really important for us.

00:53.170 --> 00:57.910
So first let's bring in these methods from the controller.

00:57.910 --> 01:02.030
So the first one is add product and the second one is get all products.

01:02.200 --> 01:05.080
Okay, now it's time to define the roots for them.

01:05.080 --> 01:08.170
So first let's go ahead and see that how we want to add the product.

01:08.170 --> 01:10.240
So add the product is going to be slash admin.

01:10.240 --> 01:11.650
Of course, this is important.

01:11.650 --> 01:14.380
And then let's go ahead and call this one as simply product.

01:14.380 --> 01:19.450
And since we are adding this, this makes sense again, feel free to go ahead and change the route as

01:19.450 --> 01:20.080
you like.

01:20.080 --> 01:23.730
And this will be handled by this simple ADD product.

01:23.740 --> 01:28.540
Now, I usually like to keep all of my admins at the bottom, and so I'm going to do the same.

01:28.540 --> 01:31.360
And I'm going to say that, Hey, this is admin roots.

01:31.360 --> 01:36.310
It actually gives a little bit more clarity to the code, what's happening and where it is happening.

01:36.310 --> 01:38.830
And these are just the user roots.

01:38.830 --> 01:41.920
These small comments actually makes a life a little bit easier.

01:41.950 --> 01:45.580
Let's go ahead and make a copy of this and move this guy a little bit up.

01:45.580 --> 01:46.330
There we go.

01:47.410 --> 01:47.800
Okay.

01:47.800 --> 01:51.730
So this is the add route, so admin should be there.

01:51.730 --> 01:56.740
But again, the problem is with the admin route that we need to grab a few information because if you

01:56.740 --> 02:01.190
check up our product controller at the time of adding, we are adding some information which is request

02:01.200 --> 02:07.090
dot user dot ID, that means that user should be logged in and should be admin as well.

02:07.090 --> 02:07.960
So no big deal.

02:07.960 --> 02:11.530
We have already worked on these routes so we can go ahead and do that one more time.

02:11.530 --> 02:13.690
So we're going to say is logged in.

02:13.690 --> 02:20.020
So that will give me all the information and I can also go ahead and kick in another middleware which

02:20.020 --> 02:22.180
is going to be custom role, which works like this.

02:22.180 --> 02:27.520
And we go ahead and say, hey, you are an admin, so only the users will be admin will be able to add

02:27.520 --> 02:27.970
the product.

02:27.970 --> 02:33.490
Now I told you once you add the middleware, it's so simple to work on with the things now the user

02:33.490 --> 02:35.410
route will be able to get all the products.

02:35.410 --> 02:41.140
So this should be rather simpler and we should be able to say just products maybe.

02:41.140 --> 02:42.160
Or you want to change the route.

02:42.160 --> 02:43.060
It's all up to you.

02:43.270 --> 02:47.740
And this one is going to be called a simple get all product.

02:47.920 --> 02:48.550
There we go.

02:48.550 --> 02:49.180
That's it.

02:49.690 --> 02:54.460
Now, first stuff is that we need to add a whole lot of products into our application.

02:54.460 --> 02:57.430
And for this I have actually created some cool stuff for you.

02:57.430 --> 03:02.950
So this is a folder that I'll be sharing with you and it has all the files that you need to upload as

03:02.950 --> 03:03.520
the images.

03:03.520 --> 03:07.720
Of course, our application should look decently beautiful, so that's why we are going to use that.

03:07.720 --> 03:09.970
So inside every single of these there are photos.

03:09.970 --> 03:14.050
So there are coders t shirts, so they are in different colors as well.

03:14.050 --> 03:15.490
Maybe you want to check them out.

03:16.420 --> 03:18.520
For example, there are hoodies here as well.

03:18.520 --> 03:20.710
So these are all the hoodies available.

03:20.710 --> 03:22.120
So nice and easy.

03:22.120 --> 03:27.250
And similar to that there are sweatshirts, so everything is available here and you can go ahead and

03:27.250 --> 03:29.470
use these images into your application.

03:29.470 --> 03:30.220
So there we go.

03:30.220 --> 03:31.930
Come on, stop that.

03:32.410 --> 03:35.650
Okay, so I'll be using these same images.

03:35.650 --> 03:39.220
And again, they are t shirts, full sleeves, t shirts.

03:39.220 --> 03:44.560
These are hoodies, these are sweat, these are regular t shirts, have sleeves and these are pro order,

03:44.560 --> 03:46.480
different variant of instead of write code.

03:46.480 --> 03:48.850
This is pro coder and the same is pro coder t shirt.

03:48.860 --> 03:52.810
So I think these are more than enough for us to actually go ahead and play around with that.

03:52.810 --> 03:58.060
So let's go ahead and first see that if we are able to access this slash admin slash product slash add

03:58.060 --> 03:59.770
route, let's go ahead and copy this.

04:00.070 --> 04:03.160
And we need to use our postman.

04:04.180 --> 04:07.540
So let's go ahead and first create a simple route for adding this.

04:07.540 --> 04:12.970
So this should all actually go away for the test product route and we are going to go ahead and make

04:12.970 --> 04:20.350
a copy of this one and we're going to call this one as simply admin, which is add product.

04:21.550 --> 04:23.800
Let's go ahead and save this one.

04:23.800 --> 04:29.860
This one is obviously going to be a post route and after the post there is going to be a slash admin

04:29.860 --> 04:31.270
slash add product.

04:31.270 --> 04:32.890
Let's go ahead and work on with that.

04:32.890 --> 04:38.530
Let's go ahead and send a request just like anything it says, hey, can not post API slash V1 slash

04:38.530 --> 04:39.340
ad product.

04:39.970 --> 04:43.390
The reason let's go ahead and check if we are actually getting that.

04:43.930 --> 04:46.840
So this one is actually get there should be post.

04:48.120 --> 04:53.430
Save that, and let's go ahead and try it one more time because we're expecting different errors.

04:53.430 --> 04:55.980
So it says error images are required.

04:56.010 --> 04:57.780
Seems like we are already logged in.

04:57.780 --> 04:59.550
So he looks like we are already logged in.

04:59.550 --> 05:04.710
But just to make sure that I'm absolutely sure that everything is all running up and running, let's

05:04.710 --> 05:11.670
go ahead and send a log out request and then try to send an admin and it says cannot read property replace

05:11.670 --> 05:13.230
of undefined.

05:13.710 --> 05:20.100
So again, it was not able to find anything inside the cookies and it was not able to look into the

05:20.100 --> 05:20.940
middleware as well.

05:20.940 --> 05:23.340
So let's go ahead and check the middleware, which is the user.

05:24.860 --> 05:31.340
So inside the middleware, which is user, there we go, is logged in.

05:31.490 --> 05:36.170
So what is happening if it is not able to find this header which is authorized?

05:36.170 --> 05:40.970
So it found nothing inside the cookie token and it didn't find anything inside the header.

05:40.970 --> 05:47.000
So it actually we can actually go ahead and make this token in such a way that if the request or header

05:47.000 --> 05:50.210
have this authorization, then only run the replace method or something.

05:50.210 --> 05:54.710
But again, at least our application is still blocked and it's not allowing me to go further down the

05:54.710 --> 05:56.870
road so we can go ahead and work on with that.

05:56.870 --> 06:02.090
We can modify or make it a little bit more tweaker or better eventually not bother too much.

06:02.090 --> 06:04.850
Right now let's go ahead and log in with two which is admin.

06:04.850 --> 06:06.980
So make sure you are logged in with the admin user.

06:07.400 --> 06:09.470
So email or password does not match.

06:09.470 --> 06:12.200
I guess we while testing we changed it out.

06:13.760 --> 06:17.030
This is the one new one and yep, this is the new one.

06:17.030 --> 06:18.680
So let's go ahead and send this values.

06:18.680 --> 06:20.000
Let's go ahead and send this.

06:20.000 --> 06:21.710
It says images are required.

06:21.710 --> 06:23.290
So that's absolutely nice.

06:23.300 --> 06:27.710
Now let's go ahead and see that how many fields actually we have to send here, because there are a

06:27.710 --> 06:29.450
lot of lots of up here.

06:29.840 --> 06:35.720
Let's go ahead and move on here and looks great now.

06:36.380 --> 06:41.570
So for this one, we are going to use the body and we are going to use the regular form data because

06:41.570 --> 06:43.430
I need to send images as well.

06:43.760 --> 06:45.200
So it looks okay.

06:45.200 --> 06:46.790
Let's go ahead and start with that.

06:46.790 --> 06:48.950
So first, let's go ahead and add a name.

06:48.950 --> 06:51.830
This name is going to be classic.

06:53.830 --> 06:54.790
Classic.

06:55.330 --> 06:57.400
I write code.

06:58.480 --> 07:00.100
The next one is price.

07:00.100 --> 07:01.990
So let's go ahead and send a price.

07:02.170 --> 07:05.920
Let's just call this T-shirt as a 599.

07:07.520 --> 07:10.430
Then we got description.

07:12.400 --> 07:14.530
So we're going to say a classic.

07:15.760 --> 07:16.960
T shirt.

07:18.540 --> 07:19.320
Come on.

07:19.500 --> 07:22.320
A classic t shirt for coders.

07:22.990 --> 07:23.280
Okay.

07:23.280 --> 07:25.880
So next up is category.

07:25.890 --> 07:32.670
So let's go ahead and say Cat Go Ri and we need to bring up the category from here.

07:32.670 --> 07:35.220
So it should be something of the enum.

07:35.220 --> 07:37.740
So let's go ahead and yeah, this is a short sleeves.

07:38.160 --> 07:40.860
So yeah, this is all the data that needs to be filled up.

07:40.860 --> 07:48.780
So this is short sleeves and then after the category, we need to put up the brand and I guess that's

07:48.780 --> 07:49.130
it.

07:49.140 --> 07:51.090
These are only the information that we got.

07:52.490 --> 07:54.130
And we can shrink this.

07:54.140 --> 07:54.890
There we go.

07:55.310 --> 07:57.160
Next up is Brand.

07:57.170 --> 08:03.650
So this one is learn code online brand and this one is photos.

08:03.650 --> 08:08.450
So make sure this is photos and we need to change the type of this one.

08:08.450 --> 08:10.190
So this one is going to be file.

08:10.220 --> 08:13.010
I'll be selecting actually multiple files this time.

08:13.340 --> 08:18.800
So I'll go into my folder where these all images are being placed.

08:19.190 --> 08:20.270
Images t.

08:21.250 --> 08:28.270
Coda and this one is a code D, so I'll just select all of these guys, four of them really a lot.

08:28.510 --> 08:29.710
But let's go ahead and select.

08:29.710 --> 08:33.460
So it says for file selected and the moment of truth how many errors we got.

08:33.490 --> 08:35.740
Let's go ahead and send this one up here.

08:35.830 --> 08:38.770
And I'm expecting an error here immediately.

08:40.180 --> 08:40.690
Hopefully.

08:40.690 --> 08:45.280
And I'll tell you the reason why I'm expecting this, because something I just quickly realized.

08:46.430 --> 08:46.860
Okay.

08:46.970 --> 08:48.200
This is taking a bit while.

08:48.230 --> 08:48.560
Okay.

08:48.560 --> 08:51.640
So we got all of these stuff and okay.

08:51.680 --> 08:53.030
Everything is looks good now.

08:53.030 --> 08:53.330
Why?

08:53.330 --> 08:54.460
I was expecting the error.

08:54.470 --> 08:55.460
Let me show you that.

08:55.460 --> 08:58.850
Because inside the cloud area, I didn't created the products folder.

08:58.850 --> 09:04.010
So I was expecting that this is going to give me an error, but looks like they have created a folder

09:04.010 --> 09:04.500
for me.

09:04.520 --> 09:06.860
It used to be an error in earlier days.

09:07.150 --> 09:08.890
It looks like they have updated some stuff.

09:08.900 --> 09:11.670
If the product doesn't exist, it's going to create that.

09:11.720 --> 09:16.190
So now inside the products, I can go ahead and say let's browse this.

09:16.490 --> 09:21.440
And yep, all of the t shirts are coming in nice and easy and I can see in the response.

09:21.440 --> 09:22.850
Let's also analyze the response.

09:22.850 --> 09:28.820
Are we getting all the data nice and easy so we have got success through the product is name price description

09:28.820 --> 09:29.690
photos.

09:29.690 --> 09:35.360
Yep, nice and easy error category short sleeves brand learn code online rating is zero.

09:35.360 --> 09:37.280
Number of reviews is obviously zero user.

09:37.280 --> 09:41.630
We have injected that the ID this is the product ID itself.

09:41.630 --> 09:44.930
The reviews are empty right now and created at fantastic.

09:44.930 --> 09:48.710
Didn't expected this to go this well but hey this is all good.

09:49.280 --> 09:51.770
Now one more thing I would like to check is inside here.

09:51.770 --> 09:58.100
So let's go ahead and refresh this database, refresh that and we got a product and I can see that my

09:58.100 --> 09:59.660
product is now available.

09:59.660 --> 10:05.420
Now let's go ahead and try out one more time because I'm obviously looking to have a little bit more

10:05.420 --> 10:06.110
of the details.

10:06.110 --> 10:07.550
Let's go ahead and work with that.

10:08.540 --> 10:10.310
So this one is going to be.

10:11.320 --> 10:18.190
Next one is going to be parole coder T-shirt.

10:20.650 --> 10:23.350
And again, there is an extra edge pro coder.

10:24.610 --> 10:26.980
T shirts again.

10:28.850 --> 10:29.750
T-shirts.

10:29.750 --> 10:31.680
And this one is since a pro order.

10:31.700 --> 10:35.990
Let's go ahead and make it nine, nine, nine, because it will help us to understand the filtration

10:35.990 --> 10:37.160
and everything really nice.

10:37.160 --> 10:39.020
And let's go ahead and change the description.

10:40.200 --> 10:48.920
A pro coder, a pro t shirt for pro coders, and the category is a short sleeves.

10:48.920 --> 10:53.270
This one is same and the brand is learn code online and let's go ahead and select newer photos this

10:53.270 --> 10:53.750
time.

10:53.930 --> 10:59.240
So I'll go one step back and these are pro coder t shirt again.

10:59.240 --> 11:04.760
I have four of these images, so let's go ahead and open them up and let's go ahead and send this one

11:04.760 --> 11:05.300
again.

11:05.300 --> 11:07.340
So admin is able to upload these.

11:07.340 --> 11:11.330
And again, these upload is going to take obviously some time because the images are getting uploaded.

11:11.330 --> 11:14.450
We are receiving the request, then we are storing that into database.

11:14.450 --> 11:18.320
So this obviously is going to take some amount of time and there we go.

11:18.320 --> 11:18.860
Fantastic.

11:18.860 --> 11:20.870
Now we have all got all of that.

11:21.050 --> 11:23.300
Now it's time to test one more route.

11:23.300 --> 11:25.040
Let's go ahead and save this one.

11:25.040 --> 11:28.550
And this one is going to be not for admin but actually get all products.

11:28.550 --> 11:34.700
So let's say get all products and this can be accessed by anyone and including the admin.

11:34.820 --> 11:37.220
This is rather a get route.

11:37.220 --> 11:44.060
So save that and let's see in the code what we are calling the route itself, we are calling the routes.

11:44.060 --> 11:44.630
There we go.

11:44.630 --> 11:46.250
So slash products, that's it.

11:47.220 --> 11:48.660
Let's move back up here.

11:50.790 --> 11:52.090
And slash products.

11:52.110 --> 11:55.160
Let's go ahead and simple get request logged in or not?

11:55.170 --> 11:56.460
We haven't bothered about that.

11:56.460 --> 11:57.620
Let's send this one.

11:57.670 --> 12:01.950
It says cannot read property length of undefined.

12:03.360 --> 12:06.600
So it looks like there are some issues in getting the request.

12:08.100 --> 12:09.120
Hey there, everyone.

12:09.150 --> 12:09.870
Hey, Tayshia.

12:09.990 --> 12:10.860
Welcome back.

12:10.860 --> 12:14.850
And it took me a little while to actually solve this issue, but I want to walk you through that, how

12:14.850 --> 12:17.310
I solved it and what was the exact process of it.

12:17.340 --> 12:22.410
Now, while solving any of the bugs bugs, you first need to stay calm and make sure that you actually

12:22.410 --> 12:22.890
follow that.

12:22.890 --> 12:24.390
What are the errors are giving in?

12:24.420 --> 12:25.680
Just follow these errors.

12:25.680 --> 12:26.400
Follow the lead.

12:26.400 --> 12:30.580
And probably within a day, probably two or maybe five day, you will able to figure it out.

12:30.600 --> 12:34.340
Now, this was pretty quick of a debugging, but still took some time.

12:34.350 --> 12:39.240
The first property or the first problem that I was getting is I cannot read the property of the length.

12:39.240 --> 12:40.830
Now what is the issue going on?

12:40.830 --> 12:46.200
Why I'm not able to get the product stolen after a little bit while I realized that this products is

12:46.200 --> 12:51.690
not actually a product because this is being an object created from the custom class that we have designed.

12:51.780 --> 12:58.350
Our custom class has property of DOT base has a property of DOT query, but we don't have the property

12:58.350 --> 12:59.040
of dot length.

12:59.040 --> 13:01.080
So there are two options in front of me.

13:01.110 --> 13:07.500
I go ahead either and create another method here and it actually sends me back by calculating the length

13:07.500 --> 13:09.360
of whatever the base I'm sending in.

13:09.360 --> 13:14.790
So whatever the final product dot basis, I need to actually calculate that or rather a better approach

13:14.790 --> 13:19.410
would be to not call it as products, but actually a products object because obviously this is an object

13:19.410 --> 13:22.260
from a very class that makes sense.

13:22.260 --> 13:24.870
Now further down the road I need to create available.

13:24.870 --> 13:26.430
So let's call this one as products.

13:26.430 --> 13:27.090
Why variable?

13:27.090 --> 13:29.220
Because this product is going to change quite a lot.

13:29.250 --> 13:32.610
Maybe because of pagination, maybe because of some queries.

13:32.610 --> 13:34.380
So this is going to be changed quite a lot.

13:34.530 --> 13:39.810
And further down the road, I'm going to go ahead and say, hey, products object, give me a base from

13:39.810 --> 13:40.200
you.

13:40.200 --> 13:42.390
This can give me base and the query both.

13:42.420 --> 13:45.090
So the base is actually products dot find.

13:45.450 --> 13:51.630
So I go ahead and further down the road now since the product is creating created from this base now

13:51.630 --> 13:54.120
I can actually go ahead and run this product dot length.

13:54.150 --> 13:56.070
Now I go ahead and save this one.

13:56.070 --> 14:00.000
This actually didn't solve my problem, actually created a whole lot of other problems.

14:00.000 --> 14:03.840
I send this one and now it says, Hey, I cannot read the property base.

14:03.840 --> 14:07.260
And I was like, Wow, why is it not able to access the base?

14:07.260 --> 14:12.300
It is clearly mentioned that I do have this base and the big query, so probably there is something

14:12.300 --> 14:14.700
wrong with whatever the values I'm returning.

14:14.700 --> 14:16.650
So in the search I'm returning the this.

14:16.650 --> 14:18.600
That means this constructor.

14:18.600 --> 14:21.420
So actually I'm returning all the values in the filter.

14:21.420 --> 14:25.740
I found out that I am not returning anything, so I go ahead and simply say return this.

14:25.740 --> 14:28.860
So I thought this should fix majority of my issues.

14:28.860 --> 14:30.960
So let's go ahead and test it out one more time.

14:30.960 --> 14:34.770
I try to go ahead and send this out and it says, Hey, cannot product start.

14:34.770 --> 14:36.090
Pager is not a function.

14:36.090 --> 14:42.090
And I realized, okay, y products start pager is not a function because it's, it's a function accessible

14:42.090 --> 14:43.140
by products object.

14:43.140 --> 14:44.640
So let's go ahead and copy this.

14:44.640 --> 14:49.800
And now whenever we are calling this pager, we obviously need to call it not by products, but actually

14:49.800 --> 14:50.910
the products object.

14:50.910 --> 14:55.950
Now similar to this, when we are actually creating another products here again, then it cannot be

14:55.950 --> 14:57.090
created with products base.

14:57.090 --> 15:02.820
It needs to be created from products object base because that object has the property of the base.

15:03.000 --> 15:07.980
I go ahead and save this one and I was expecting okay, well this seems all done and I have returned

15:07.980 --> 15:10.680
to the response page and I'll be able to send all the response.

15:10.680 --> 15:16.050
Now, I went up and I send this and I saw all of these going on nicely.

15:16.320 --> 15:19.560
So I'm getting all the properties and products and everything nicely.

15:19.560 --> 15:25.260
But there is still one issue that is something which I guess I'm not getting it right now.

15:25.830 --> 15:30.270
That's because I'm not holding the products here because this needs to be a weight.

15:31.080 --> 15:36.270
And hopefully, yeah, this is exactly what I did because I realized that products dot base might be

15:36.270 --> 15:39.180
changed a little bit, might be getting some values from the database.

15:39.180 --> 15:40.650
So let's await this one.

15:40.800 --> 15:46.350
And when I awaited this probably this is yeah, this is exactly the error that I got into.

15:46.350 --> 15:50.370
So if I don't have it, that gives me the all the values that I wanted to.

15:50.370 --> 15:55.800
But if I wait for it, it says query was already executed and I have not seen this error in a while

15:55.800 --> 15:59.970
because I don't use this exact flow into the applications here.

16:00.510 --> 16:02.610
So what was the drawing going on wrong?

16:03.180 --> 16:06.540
Again, StackOverflow helped me in figuring out that what is going on.

16:06.540 --> 16:09.510
So here is here is something that we got an answer up here.

16:09.510 --> 16:11.850
So again, this was asked just two months ago.

16:11.850 --> 16:14.130
So this is a recent update that has been added.

16:14.130 --> 16:20.220
And thanks to StackOverflow that we got this one, so they says, hey, I had the same issue and I changed

16:20.220 --> 16:23.220
a dot clone and this is going to solve the problem.

16:23.220 --> 16:27.570
And but not only here, I still went up and read that what actually is the problem.

16:27.660 --> 16:32.910
So Mongoose Dot Connect always returns a promise, not a mongoose instance and all of that, but it

16:32.910 --> 16:34.680
says duplicate query execution.

16:34.680 --> 16:39.960
So if you have some of the change query going on like dot, find a dot something on fine and on top

16:39.960 --> 16:40.350
of that.

16:40.350 --> 16:42.750
And so it doesn't allow all of that.

16:42.840 --> 16:47.280
All you got to do is chain a dot clone as they say up here that I changed it up.

16:47.280 --> 16:49.800
So what I did in that that hey whenever you.

16:49.860 --> 16:53.280
Need to actually run this base and you are firing up more of that.

16:53.280 --> 16:55.380
Just go ahead and add a dot clone here.

16:55.380 --> 17:00.690
So I go ahead and save this one and I go ahead and run this one and there we go.

17:00.690 --> 17:02.340
It now gives me all the product.

17:02.370 --> 17:06.840
Now, to my surprise, I was a little bit surprised that why not putting the away.

17:06.840 --> 17:11.430
It actually gives me the result which I want, but the proper and the right way of doing the things

17:11.430 --> 17:15.630
is actually having a dot clone being chained up whenever you are firing up two or more methods.

17:15.630 --> 17:18.630
And I can definitely add this into a couple of more methods.

17:18.630 --> 17:22.830
Now, the reason why I'm showing you the entire process instead of just magically doing video editing

17:22.830 --> 17:27.690
and all of that is because it is important for you to understand that what is the process of debugging?

17:27.690 --> 17:30.270
And nobody is immune to debugging process.

17:30.270 --> 17:34.800
Everybody makes their mistake and the code eventually is going to be refined and refined as we move

17:34.800 --> 17:36.090
on further down the road.

17:36.240 --> 17:40.500
But I hope this actually gives you a brief idea that how we actually need to work on with the things

17:40.500 --> 17:41.850
and how things are going on.

17:41.850 --> 17:48.300
So this is now a better method as get all products and as well as this admin route that we have created

17:48.300 --> 17:50.190
for ADD all the product.

17:50.190 --> 17:50.970
So there we go.

17:50.970 --> 17:54.510
Finally, our debugging is all done and now we are able to access all the product.

17:54.510 --> 17:59.220
And I hope you enjoyed the part where I walked into through the every single point and what was going

17:59.220 --> 18:01.740
in my brain while solving this debugging process.

18:01.740 --> 18:03.750
Let's go ahead and catch up in the next video.
