WEBVTT

00:00.720 --> 00:02.200
How are you everyone?

00:02.760 --> 00:06.360
It is a video like create a comment.

00:06.600 --> 00:07.600
Get right.

00:07.720 --> 00:11.200
Okay, so let's create us.

00:24.200 --> 00:32.960
And if we come on the command service you will say we have a query, right?

00:32.960 --> 00:37.040
We have a query and update okay.

00:37.080 --> 00:45.000
We only need the create update and delete over here right.

00:47.280 --> 00:57.640
Now let me open the command get Y and I will copy some configuration from the message.

01:01.010 --> 01:02.090
To be listed.

01:05.570 --> 01:10.730
Over and after that in the server.

01:18.330 --> 01:20.290
And import.

01:27.730 --> 01:32.370
Server and removes the unused import.

01:33.130 --> 01:37.010
Okay so that's for the command gateway.

01:37.610 --> 01:44.170
And right now we need to add the code for create command okay.

01:46.810 --> 01:50.490
Now let me see how it can be done.

01:52.690 --> 01:55.610
Right here we need to import the event right.

01:55.650 --> 01:59.850
But before that Let me say what is inside the command.

02:02.010 --> 02:03.210
Respondto.

02:07.530 --> 02:12.490
Let me try to copy some idea.

02:13.210 --> 02:17.010
Let me open the database right here.

02:17.010 --> 02:18.250
Insert the commands.

02:19.210 --> 02:22.130
I will copy the boss idea over here.

02:22.490 --> 02:22.930
Right.

02:23.530 --> 02:24.610
With the boss ideas.

02:25.610 --> 02:32.050
And go back to get on command by boss.

02:32.450 --> 02:33.890
And put the idea over here.

02:34.850 --> 02:44.170
And I will say, now you can see we have, uh, some stuff like that, right?

02:46.330 --> 02:52.650
It means right now we need to somehow convert the data from the command over here.

02:54.730 --> 03:01.980
Into this structures in same data structure over here and in the front end.

03:01.980 --> 03:03.140
We need to boost that.

03:03.700 --> 03:04.100
Okay.

03:04.140 --> 03:06.100
Inside the stacks.

03:06.260 --> 03:06.740
Okay.

03:07.660 --> 03:13.700
So right here I will call the save command.

03:15.540 --> 03:18.620
You got a wife after us.

03:18.740 --> 03:19.500
After us.

03:19.540 --> 03:20.780
We need to find.

03:22.020 --> 03:22.580
Right.

03:23.380 --> 03:25.140
We need to find a command.

03:25.620 --> 03:28.460
Let me write the logic over here.

03:29.340 --> 03:31.540
I will change the screen for now.

03:33.700 --> 03:37.780
And I will call command equal.

03:37.900 --> 03:43.020
Why this dot command model.

03:44.700 --> 03:45.220
Right.

03:47.980 --> 03:54.390
Command model dot file by adding an array over here.

03:58.830 --> 04:07.190
And now, if you take a look at the guest comments right here, you say I already popularized the user

04:07.190 --> 04:12.590
command and reply to user for transform video right here.

04:13.070 --> 04:17.110
So for a reason right here we also need to reply also.

04:17.230 --> 04:17.710
Right.

04:18.630 --> 04:25.470
And right here I will just give the command I will throw new log file in session.

04:30.030 --> 04:33.630
And make sure we return the command.

04:35.590 --> 04:38.830
And right here we have some error come from the controller.

04:40.110 --> 04:40.510
And.

04:43.910 --> 04:46.470
Let us remove the get here.

04:46.470 --> 04:47.390
We don't need that.

04:49.910 --> 04:50.470
Okay.

04:50.950 --> 04:59.160
And Inside Korea after we already saved the command with two files.

04:59.280 --> 05:00.160
The command.

05:01.960 --> 05:02.400
Right.

05:03.640 --> 05:11.200
And I will call up right command.

05:11.480 --> 05:11.960
Okay.

05:12.440 --> 05:13.680
And I will call this.

05:17.240 --> 05:19.120
Now by one.

05:22.120 --> 05:25.240
With the save command dot underscore and.

05:31.080 --> 05:31.920
Not over here.

05:32.920 --> 05:40.640
And after that we should in chat there are command gateway.

05:50.800 --> 05:51.840
And right here.

05:53.520 --> 05:59.400
What we need to do, we need to this dot command gateway.

06:04.400 --> 06:06.800
We need to create the headers.

06:11.560 --> 06:17.080
And or command create for us.

06:17.400 --> 06:18.840
And I will come over here.

06:21.200 --> 06:27.440
And I will back the butterflies command over here.

06:28.360 --> 06:29.200
Oh sorry.

06:29.920 --> 06:38.400
After here make sure we convert it into the DTO for same data structure okay.

06:48.890 --> 06:58.170
But right now, every time I think I need to create YouTube methods over here, right?

06:58.850 --> 07:00.530
Let me create a YouTube method.

07:00.970 --> 07:03.570
And right here I will create a jump form.

07:05.970 --> 07:10.250
Into your plus YouTube plus DS.

07:10.530 --> 07:18.970
Now you can say in every detail like uh, no.

07:20.290 --> 07:21.490
For example, I.

07:24.010 --> 07:30.290
Might say, sorry, you can say we always call this thing right?

07:31.010 --> 07:34.730
I want it will separate from me into the YouTube function.

07:35.730 --> 07:40.250
I don't want use this function again and again and again.

07:41.130 --> 07:51.220
So I will vote over here and I will create this box const John Fogg Museum with a function over here,

07:51.220 --> 07:57.460
and I will return the blank to instant, and we need to boost the video.

07:57.900 --> 07:58.900
Play video.

07:59.420 --> 08:04.460
And second one will be is a how you call something like that.

08:06.460 --> 08:06.820
Okay.

08:06.860 --> 08:09.940
And over here and this turn over here.

08:11.820 --> 08:12.260
Right.

08:12.860 --> 08:24.140
Put a little uh, you can say inside the data center, we can say we already put the class constructor.

08:24.860 --> 08:25.420
Right.

08:28.700 --> 08:37.380
So I think I can use class constructor over here and right here let's put say.

08:41.260 --> 08:41.780
No.

08:44.100 --> 08:47.550
Not not not the know how this works.

08:47.590 --> 08:49.910
Let me change back to the normal function.

08:55.750 --> 09:00.390
And so you do some stuff like that.

09:02.750 --> 09:04.870
And we need to go over here.

09:05.430 --> 09:06.030
Okay.

09:07.670 --> 09:09.590
And right here we can put any.

09:09.630 --> 09:10.030
Okay.

09:10.070 --> 09:11.390
We don't care about us.

09:12.430 --> 09:23.910
And right here who you correspond with your equal sign form Ctrl and put a small.

09:27.470 --> 09:31.950
Community of and popularize okay.

09:33.070 --> 09:33.670
Okay.

09:34.910 --> 09:35.990
Like this one.

09:37.110 --> 09:40.310
And put the quantity over here.

09:50.470 --> 09:53.630
Here is written a response commanded your right.

09:58.670 --> 09:59.950
Over the right way.

10:00.870 --> 10:02.110
And move that over here.

10:08.310 --> 10:09.350
And we need to.

10:12.990 --> 10:13.510
Immediately.

10:13.510 --> 10:15.110
By we way.

10:15.110 --> 10:15.710
Command.

10:18.190 --> 10:19.110
Created.

10:23.070 --> 10:25.750
With the very small command detail.

10:26.150 --> 10:28.310
And we need one more base.

10:28.630 --> 10:29.150
Okay.

10:29.910 --> 10:31.990
We cannot only send the command.

10:32.470 --> 10:33.030
Instead of.

10:33.030 --> 10:34.190
We should send.

10:36.430 --> 10:36.870
The.

10:40.270 --> 10:41.150
The boss area.

10:41.150 --> 10:41.510
So.

10:41.680 --> 10:42.320
Right.

10:42.360 --> 10:44.920
We call the commander here belongs to the boss ID.

10:45.040 --> 10:49.440
And actually inside the respawn command, we also have a boss.

10:50.320 --> 10:54.880
And we also have a boss already.

10:54.920 --> 11:04.600
Boss right here will be the ID, okay, but the best way is always send the information for detail.

11:05.080 --> 11:05.560
Okay?

11:05.680 --> 11:10.160
So for that reason, this guy I will go to boss area over here okay.

11:11.080 --> 11:16.240
And right over here boss address screen.

11:18.440 --> 11:26.480
And for that reason in this case I will put boss okay and command we will respawn.

11:26.920 --> 11:34.920
Commander okay I will send back the object for the client.

11:35.680 --> 11:38.240
And right now let's console.log.

11:43.090 --> 11:46.090
Mali and the small community of.

11:48.650 --> 11:49.850
Let's see how it works.

11:54.970 --> 11:56.650
Let me grab this other command.

11:58.450 --> 11:59.250
What is.

12:05.490 --> 12:06.050
Command?

12:06.090 --> 12:06.690
Let us.

12:09.530 --> 12:09.930
Run!

12:10.770 --> 12:12.010
And let me click on save.

12:13.610 --> 12:15.210
And let's check the database.

12:15.530 --> 12:15.890
Sorry.

12:15.930 --> 12:17.410
Let's check the terminal.

12:19.770 --> 12:25.210
Now you will say right here we already got the bus array and respond to manager.

12:25.250 --> 12:29.410
It will have the exact structures, right?

12:29.450 --> 12:31.050
You have exact structure.

12:31.770 --> 12:35.890
You can say put the get command over here.

12:46.860 --> 12:49.300
Let me say with the next command.

12:54.140 --> 12:57.260
Let me copy the and.

13:03.540 --> 13:04.460
Let me say it again.

13:04.500 --> 13:09.260
We'll say right here I will copy.

13:14.940 --> 13:16.180
So this is.

13:18.700 --> 13:23.860
Our copy the ID here with us.

13:24.300 --> 13:26.180
And boost over here.

13:30.220 --> 13:30.740
Okay.

13:30.780 --> 13:32.940
And reply to user ID.

13:34.060 --> 13:37.180
I will reply to Myself.

13:42.500 --> 13:42.820
Over here!

13:44.860 --> 13:45.420
Over here.

13:49.220 --> 13:50.460
Okay, let me say.

13:52.420 --> 13:54.220
And also.

13:56.300 --> 13:56.660
Um.

13:58.860 --> 13:59.540
Right here.

13:59.540 --> 14:00.620
We also got.

14:00.620 --> 14:04.660
And right here we already got the user ID.

14:05.180 --> 14:06.700
User name over here.

14:07.780 --> 14:08.260
Right?

14:11.420 --> 14:11.780
Um.

14:18.900 --> 14:22.380
Okay, so I think it is already work.

14:24.140 --> 14:24.540
Okay.

14:24.540 --> 14:28.140
We already have the data here.

14:28.540 --> 14:30.820
So that's for the video.

14:31.140 --> 14:33.620
And I hope you understand this video.

14:34.220 --> 14:36.220
I will see you in the next one.
