In this video, we are starting deployment of our React project to production and actually there are
quite a lot of tools where you can deploy your project, but you need to pay for it or it's not really
comfortable and you are really limited.
This is why I want to show you one real way how you need to deploy your project in production.
And actually, first of all, it is almost the cheapest variant.
Secondly, you can deploy projects of any complexity there and not only React projects, but any project
that you want to.
The main problem is here that it may be a little bit difficult for you just because we will deploy it
on our own server that we must rent.
And I highly recommend you to use hetzner.com.
And this is not an advertisement.
You can just rent any server that you want, but hetzner is the cheapest and quite reliable.
This is why I'm using it quite often.
As you can see here, I clicked on cloud tab and here we can click on prices.
So here are the prices and the cheapest server costs €3 per month.
And this is really a nice price because here we are getting two gigabytes of Ram and 20GB of storage.
If you want to not follow along, but do it yourself, you need to register on hetzner here and you
will simply confirm your account after signing in.
In your account you will see such screen.
As you can see here, I'm logged in and here I have one default project and when I'm clicking here you
can see that I already have one server and we will create a new server just for this course.
This is why here I'm clicking add server and here we can first of all choose a location.
Doesn't really matter.
Here we are selecting ubuntu by default.
This is completely fine for us.
The type is standard.
This is also fine here.
We don't change anything and as you can see here the prices for different server and we of course take
the cheapest here, see X11 and as you can see the price is €3.
Now I'm scrolling here to the bottom.
We don't need volumes, we don't need network, no firewalls, no additional features, no SSH keys.
And here is our name, actually a name I want to change, for example, in React quiz so we know what
we are talking about.
Now I am hitting, create and buy now and after this my server will be created.
As you can see here, my server is highlighted with green, which actually means that it is already
running.
And actually you must get an email with all your credentials for this server.
So now in order to login to our server, we need to write SSH.
And then here first of all route, then add symbol and here will be your IP address.
And as you can see here, we can simply click on our IP address part and it will be copied.
Now I just paste this IP address and hit enter.
And after this we have a question.
If we really want to enable fingerprint, we simply need to write here.
Yes.
And after this we must provide a password that you get in your email.
And as you can see here, we are getting a message.
You are required to change your password.
So first of all, here we must provide a current password and then in new password.
So I will set here one, two, three, four, five, six, seven, eight.
And once again, actually it doesn't matter because we are simply testing it.
But this will be your new password for your root user.
Now, as you can see, I'm getting such output inside console, so root add and here React quiz, which
is actually the name of our server.
And if you are getting such output, this means that you are successfully logged inside your server.
So once again, what step you need to do.
First of all, you need to sign up for your new account.
Now you need to hit add server and create your server.
Then we are getting an email with password and IP address.
We can copy here, IP address and just right in the terminal.
Ssh.
Then root add and your IP address.
After this.
We are changing a password and we are successfully logged in with the new password inside our server.
So in the next video we will install all packages that we need and configure deployment of our project.