All right.
Up next, again, let's install all the libraries we're going to use on the server.
But before we do that, we also want to set up a git ignore in the root because, of course, we don't
want to push the nodemodules and rest of the stuff up to a GitHub and technically you can type all of
the values from the scratch yourself.
So first let's create a dot git.
Ignore.
But actually, my preference is to copy values from already existing client, because pretty much everything
that I need is already there.
So let me save it over here.
That's going to be my git ignore in the root.
And then once we have that one in place, you know what I think?
I can just remove all of this code.
From the server.
I don't think we'll need it.
You can also remove test default and test.
Named.
We won't use those ones either.
And then let me check the Readme.
Now, if you want, you can set up the source control if you're interested.
So essentially push this entire project right now.
Up to a GitHub, but in my case, I'm not going to do that right now, so I'm going to do that at the
very, very end.
And essentially you want to grab this code and these are the packages we're going to install.
So I'm going to copy and paste, run this.
And while the install is taking place, also in a script, I want to create a setup project script which
is going to install dependencies on the server, then navigate to a client and do the same thing.
And this is going to be very useful command whether you're grabbing the project from the GitHub or when
we deploy, because once we deploy on render platform, which we're going to use, we'll use the same
command.
Essentially it just installs all the dependencies, the client one as well as the server one.
And just so we can test it, I know it's a little bit redundant, but I'm going to remove the existing
node modules that we just installed from the server and also from the client just to showcase that.
Actually, this command works.
Then let's navigate to a package.json over here in the server and effectively let's set up that script.
So we're going to go with setup project or whichever name you want.
And then NPM I, which is going to install on the server.
And then we want to navigate to a client folder and effectively repeat the same step.
And now let's test it out.
We want to go with NPM run and set up project and if everything is correct.
Again, we're going to install all the packages on the server as well as the client.
So notice over here I have the node modules.
Awesome.
And then also I'll have the node modules eventually over here in the client.
Yep, there it is.
And with this in place, we are ready to move on to the next step.