Hey, did everyone stay here?
And welcome to the video.
We are finally we are going to fire up our voice code.
And before we do that, couple of information, the first one, this information, this entire application
is going to be a little bit buggy.
I will deliberately introduce you some bugs so that I can help you to solve these bugs and tell you
that sometimes it's not easy to solve them and you need to look harder on there.
So bring up your water bottle or something.
It's going to be a bumpy ride.
We'll be using Express GPSs and we'll be working with them.
A side information that sometimes, of course, if you are on the learn code online, you are watching
this course there, then our team try to help you out in any places where you are stuck around and when
you change all of the variable names and folder names and everything, it's a little bit difficult for
us to go jump into and all of that.
So make sure you try to keep things as close as possible and once you are done with the course, feel
free to just modify and just rip apart everything that you like.
So that's pretty sight information.
Now let's go into Express G's because this is what we'll be using it up here.
Now, I have zero idea how Express works, so let's go ahead and see the documentation, what they say
up here installing.
Let's go ahead and see that it says you can just create a directory and you can just initialize an NPM
project.
This is kind of a go to step always whenever you are creating an application.
So I'll walk you through with that.
And then there is an entry point in all of that.
I'll walk you through with that as well.
And then I can simply say NPM, Install Express, you don't need to pass on the save flag because that's
the old documentation and simply go ahead and use starting using the express.
That's great.
Now there are two types of installation that you can do.
The first one is the install, just like this, which is a regular installation and there are some dev
dependencies also.
So these are major dependencies and there is something known as dev dependencies.
The dev dependencies are something which are installed to help you in the development cycle.
These are pruned or you can say these are being ignored or deleted at the time when you put things into
production, I will walk you through that.
Yes, this is exactly being done.
Okay.
Now I know that how this is being done, let's go up and fire up your terminal or anything.
V is code, whatever you like.
I have just opened up my terminal.
Yours might be having a get bash or PowerShell or on the Mac guys.
You might have terminal, whatever you like to use.
Just go ahead for that.
I need to go ahead, move into desktop and I have created a folder which says AE backend.
Okay.
So now I'm into this folder and I'll be doing almost everything up here.
So let me create one other folder inside this one.
I will be calling this one as social because this is a social media application, not really complex,
but still it's a social app.
So let's call this one as social app, all lowercase.
This is what I usually prefer.
Let's go into this social app.
There we go.
Now, the very first thing that you'll be doing is making sure that the node is installed as soon as
you do node dash V, this should actually give you some of the version of the node as long as you are
getting some version and number back.
That's all what we need.
Now, let's go ahead and start with that.
Any time you are going to start with the back end development, you need to say NPM in it.
What this is all about it it simply is a short form for initialization.
I want to initialize a project which will be governed by the NPM, the node package manager.
This is going to ask you some questions as you will get more friendly with it.
You can just directly pass on an option of why to say yes to all of the things and skip these questions
there.
But we are not that at that face.
So we're going to say npm init and let it ask all the question what is the name of the package?
I'm pretty happy with the social app in case you want to change it.
You can write it up here or you can just hit enter.
What's the version?
My version is definitely 1.0.0 in case you don't know much about the same word versioning, if you'll
just go to a YouTube.
I have created a detailed NPM video on that.
You can go ahead and refer to that, but you can also go for the same word.
And this is what the semantic versioning is.
Your NPM is entirely governed by the same tech versioning, and it's a little bit difficult to read
up here, but if you'll watch my video on YouTube channel, it will become much more clear too that
we are going to be following that exact thing and we'll be going for that.
So let's go up here.
I'm pretty happy with the version here.
Description Basic Social Media App.
That's fine entry point.
You can make it as indexed or JS or you can change it as well.
There is no issue at all.
We're going to keep it sane.
There is no test command as of now being specified.
But in case you want to run some test suites, then you can mention that command here.
Right now we don't have any git repository.
We are not going to initialize it yet.
Later on we definitely will do it.
Keywords.
I don't have any keywords or I'm going to just say express and rest API or just I'm going to say API.
Yeah, these are two keywords.
Author, you can definitely go ahead and put up your name here.
That would be awesome.
And license is all fine.
Is this all okay looking to you?
Yes, it is all looking okay.
Do I need to put.
All this information?
Technically, no.
You don't require this much of the information put up here.
You can just add them later on as you like.
Now, what I'm going to do is I'm going to go ahead and say, please open up my code to here by saying
code dot.
It opens up a Visual Studio code in case you are doesn't no need to panic.
You can just open up your this ae backend.
Here it is and you can just drag and drop your folder.
That's it.
That's pretty much it.
That's you have to do and when it asks for trust, you have to trust it.
Okay, now let's go ahead and expand this.
I will be using in-built terminal or code from now onwards.
So let's just first see the package dot.
Jason, now all the information that you put it up here, this is where all it goes in.
Now the first thing that we're going to do is install the express.
So how we can go ahead and do that control until they open up your inbuilt terminal or via Xcode and
you can simply go ahead and say NPM, Install Express or for the short, you can go ahead and say NPM,
I express whatever you like, it's totally up to you.
Now in some of the documentation you are going to see that you need to pass on dash, dash, save,
flag.
You don't need to do it right now or now onwards.
It was long ago done that we will automatically save it.
So you don't need to pass on the save flag.
Let's go ahead and hit enter.
As soon as you do this, it requests the NPM repository itself and will bring the express and or the
requirement of express for you.
You will also be able to see this here in the dependencies express this version and again semtech same
versioning is being used here in the node modules.
It not only brings the express but all the related dependency of that.
And this is usually always the big file because Express is so large and is dependent on so many of the
things.
This is a really common thing to happen in all of the node application.
So this is the very first introduction of getting started with EXPRESS and introducing you to the package
JSON.
So that's all what we'll be doing in this video.
Let's move into the next video and talk a bit more on this.