WEBVTT

00:03.880 --> 00:09.360
Hey that everyone that they sure and welcome to another section of this pro back end of course.

00:09.400 --> 00:13.840
Now, before we move ahead into this section, it is very important to understand that where we have

00:13.840 --> 00:18.940
reached so far, so that you can understand the beauty of the structure of this course, definitely

00:18.940 --> 00:19.540
that is one thing.

00:19.540 --> 00:24.070
But it will also help us to understand that where we have reached so far and what we have to do now.

00:24.100 --> 00:28.840
Game Plan Action Plan is one of the most important things while learning, and that's where I will help

00:28.840 --> 00:29.240
you.

00:29.260 --> 00:34.450
So let's talk about the entirety of the things so far what we have learned, what we have done, what

00:34.450 --> 00:37.180
we need to do further, and how we are going to proceed.

00:37.270 --> 00:41.170
So, so far, now we know that how we can move things on to Heroku.

00:41.200 --> 00:41.920
We have seen that.

00:41.920 --> 00:46.980
How much important is the port variable and how much important of the line the process is?

00:47.060 --> 00:50.710
And that we haven't talked much about it because there was no need of it so far.

00:50.710 --> 00:53.050
But now obviously it is going to be in need of it.

00:53.110 --> 00:57.490
So from the very first section, we are taking care that how things move into the production, we need

00:57.490 --> 00:59.860
to take care of that and we will be doing that.

00:59.860 --> 01:06.100
But nonetheless, we still know that how we can push things onto Heroku and we will now move on in a

01:06.100 --> 01:08.410
similar direction that we have to push it on there.

01:08.410 --> 01:10.720
So we need to use all those information.

01:11.020 --> 01:14.910
Apart from this, we also know a whole lot about the request and response.

01:14.920 --> 01:19.780
We have dedicated the entire section of the swagger, and the reason why that section comes first is

01:19.780 --> 01:24.550
so that you can understand more about the request and the response, and you get enough time to study

01:24.550 --> 01:26.860
more about the documentation of EXPRESS.

01:26.860 --> 01:32.830
And now we are at this position that if the data comes up from the URL, from the query, from the body,

01:32.830 --> 01:36.340
or maybe the images, you can handle all of them into your backend.

01:36.340 --> 01:41.320
Not only that, you also now understand that how you will be sending some response, whether it's a

01:41.320 --> 01:45.700
regular response as a string format or maybe a JSON response or a status code.

01:45.700 --> 01:47.050
So you know all about this.

01:47.050 --> 01:52.510
This is so much of a good progress, but we have seen that we fall into some of the problems.

01:52.510 --> 01:55.760
In case you noticed in the last video, we were writing everything into the app.

01:56.020 --> 02:02.080
JS So we need to understand a couple of things that files are getting really big and file, which needs

02:02.080 --> 02:05.560
too much of the scrolling are really not the best thing.

02:05.830 --> 02:09.040
Surely in some cases we need to keep things organized as well.

02:09.070 --> 02:13.510
It's not really about getting the file too big, but it's more about the organization and you might

02:13.510 --> 02:15.310
be asking why we need that organization.

02:15.310 --> 02:16.870
This is already working great.

02:16.870 --> 02:18.130
Yes, that's a good point.

02:18.130 --> 02:21.550
But we are going to be working into a multi development environment.

02:21.550 --> 02:24.910
There will be multiple development developers involved in the project.

02:24.910 --> 02:30.430
Some will be handling controllers, some will be handling routes, some will be writing maybe middleware

02:30.430 --> 02:31.210
and all that thing.

02:31.210 --> 02:32.860
So we need to take care of that part.

02:32.860 --> 02:35.410
So we will be working on that now.

02:35.410 --> 02:37.180
We will be doing this a step by step.

02:37.180 --> 02:41.740
It's not like you are going to learn the entirety of how to rip apart a project into multiple separate

02:41.740 --> 02:42.940
file in just this section.

02:42.940 --> 02:43.930
Eventually we'll do it.

02:43.930 --> 02:48.340
We'll do some part in this section and the later on will come up into the next section.

02:48.610 --> 02:50.260
Nothing is permanent so far.

02:50.260 --> 02:53.110
This is also another of the problem that we have seen so far.

02:53.110 --> 02:54.100
We created an array.

02:54.100 --> 02:58.960
We were pushing into the array, but as soon as the server restarts, it just poof, everything is gone.

02:58.960 --> 03:02.740
So this brings the need that we need to now inject a database.

03:03.370 --> 03:04.300
Now what database?

03:04.300 --> 03:08.920
You'll be choosing, what Aurum will be, we'll be choosing and what even Aurum is.

03:08.920 --> 03:14.050
We need to take care of all these things, but one thing is absolutely sure that we need some kind of

03:14.050 --> 03:16.540
database and we need to study a little bit about it.

03:16.570 --> 03:21.790
So how we choose the database, how we make a study of the database, again, that comes up just almost

03:21.790 --> 03:22.570
like EXPRESS.

03:22.570 --> 03:24.190
But I will walk you through with that.

03:24.280 --> 03:29.050
Now, one thing we need to absolutely make sure that happens in our back end is we need to hide our

03:29.080 --> 03:29.800
secret.

03:29.830 --> 03:34.690
Now, eventually are going to notice that that process, that EMV, we saw that in the Heroku, that

03:34.690 --> 03:38.310
it's a very secretive file and it has a key value pairs.

03:38.320 --> 03:41.860
That means some variables need to be declared and some value needs to be declared.

03:41.890 --> 03:44.770
Your entirety of the back end is run through those secrets.

03:44.770 --> 03:50.890
Those secret can be a direct link to your database URL, maybe some of the secrets that will help you

03:50.890 --> 03:52.450
to generate some algorithms.

03:52.450 --> 03:59.080
And by the time algorithms I mean to say edge mac algorithm or maybe SHA 52 or maybe SHA 256 not SHA

03:59.080 --> 04:02.320
to 250, SHA two 5256.

04:02.320 --> 04:07.660
So we'll be having a whole lot of such algorithms that are governed by the secret or some seed values.

04:07.660 --> 04:12.220
And these are some secrets that we need to protect and for that we'll be studying all of that.

04:12.220 --> 04:15.520
So just to give you a quick summary, we need to learn how to inject the database.

04:15.520 --> 04:19.450
We need to make sure that files are being separated out into multiple components.

04:19.450 --> 04:22.120
And we also need to take care how we can hide the secret.

04:22.120 --> 04:26.290
So there is a lot more that we have to go through now and there is a lot that we have already learned.

04:26.290 --> 04:28.450
So now you have the idea.

04:28.480 --> 04:29.680
Now just one last thing.

04:29.680 --> 04:34.480
There is also one issue that we need to address and we obviously will be addressing in this particular

04:34.480 --> 04:35.770
section right now.

04:35.770 --> 04:39.250
All of our routes are open, get post or whatever that out are creating.

04:39.250 --> 04:41.380
Those all routes are open.

04:41.380 --> 04:44.860
Anybody can access those routes and can just put any value into that.

04:44.860 --> 04:49.840
We need to learn how we can authenticate those routes, maybe by username and password, or maybe there

04:49.840 --> 04:54.220
are a couple of other ways as well, but we need to learn that now and that's exactly what we'll be

04:54.220 --> 04:55.480
doing in this section.

04:55.480 --> 04:59.920
So I hope this gives you a clear idea of what we have done so far and what we are going to do in the

04:59.920 --> 05:00.850
next section.

05:00.850 --> 05:01.750
Let's go ahead.

05:01.890 --> 05:03.390
And walk into the next one.
