- [Instructor] So the next step in the tools we need
is to have Node and Express properly installed.
We'll also get our project initialized so we can
add Express to the package that Jason filed.
So let's get to it.
So the first thing you need to do
is go to nodejs.org and when you get to this page
you're going to have two versions you can download.
You have the LTS version or the long term support version
and the current version.
So this is the one with the latest and greatest features.
I recommend that you use the same as I'm going to use
in this course which is the LTS version
but if you want to try to the latest version
you can go ahead and do that.
So what I'm going to do is click on this version here.
Once you have Node and npm installed
you can close the installation window.
And then close your browser.
And then what we're going to do is create
a brand new folder on our desktop.
So I'm going to right click on the desktop
and you can do this anywhere you want
as long as you're following along in the same folder.
And I'm going to call this CRM.
And then I'm going to drag and drop this folder
inside of Visual Studio Code.
So if Visual Studio Code is not open
let's go ahead and open it.
Then I'm going to drag and drop that folder
directly onto Visual Studio Code.
And now I have this folder in here that I can work from.
So the first thing we're going to do
is open up the Terminal so you can go to the Terminal
by clicking on View, Terminal
and you're going to see it here.
And then what we're going to do in this folder,
so you want to make sure you're in the folder
that you just created.
We're going to do npm init.
And this is going to create a brand new project
or a brand new package that Jason filed
inside of that folder.
So you have a few questions you need to answer.
So the package name is the very first one.
So this is the application name.
What is the version of your application?
We'll go with one.
Description, so this is a CRM backend.
The entry point is going to be the index, yes.
Test command we're going to leave.
Git repository if you have one or if you want to use one
for this project you enter the URL
of that git repository here.
Keywords are used when you publish your package to npm.
We're not going to enter anything here
so I'm going to enter my name.
License we're going to leave as is.
And is this okay, yes.
So now you're going to see a package that Jason filed
up here inside of your project and if you
go to the folder, so if I minimize the project
and I go to the folder on my desktop
I'm going to see the same file here.
And this is basically all the questions
that we've just answered.
So next thing I want to do is install Express.
So the way I do this is npm,
i or install,
and then express.
And if you're using legacy versions of npm
you need to do dash dash save so it saves it inside
of your package that Jason filed,
but because we're using Node and npm version 10 and above
then we're good to go.
So npm install Express and you're going
to see Express appear on your package that Jason filed here
and we're good to go.
Okay so now we got our project initialized,
installed Node which comes with npm,
and finally added Express to our project,
so let's move on.