Once it's done, we're going to go ahead and tell it Yes to keep it.
It is something we trust, we'll show it in Finder and we'll double-click to install.
We'll click Continue, click Continue again and then Install.
It's probably going to ask us for the administrator credentials, and
I'm going to go ahead and give them here.
Click Install, And
once it's done we can click Close, go back to the instructions,
where it tells us to verify that it actually got installed.
We should run Heroku --version on the Terminal.
Let's go ahead and copy that, go back to our Terminal.
Clear the screen and let's go ahead and paste that command.
And when we enter it you can see that it's actually part of the installation process
a little bit, because it's now actually installing,
what it's doing it's downloading the CLI and then installing it in our system.
And as long as we get these two lines right here,
heroku-toolbelt with a version number and then heroku-cli with a version number.
It means that we actually installed it properly and everything is working.
Let's go back to the guide, and we're going to actually close this tab right
here, and next thing is for us to log into Heroku using the Heroku CLI.
Well, in order to do that we just need to run this heroku login command.
Let's go ahead and copy that, go back to our Terminal,
clear the screen, paste the command, and press Enter.
And the email is the email address you registered with heroku.com.
I'll go ahead and enter my email address, press Enter.
And then the password that you registered with Heroku.com.
Note that it's actually not going to show you the password or
even the little bullet points that you're typing.
Typing is hidden and that's normal.
Once we're done, it will tell us that we're logged in as our email address.
And it means we're good to go, let's go back to the guide.
And the next step here, step five, is to create the Heroku domain.
Well the Heroku domain is the sub domain,
actually, of the herokuapp.com domain name.
And that's something you're going to be able to choose yourself,
assuming it's going to be available, and that's how you're going to deploy
your application when you access it later through a URL or through the browser.
In this case, this is going to be the restaurant-server, that's the restaurant
server application that we're deploying, not our front end application.
There's a couple of options that we have in order to choose our sub domain name.
The first one is, if we just issue a command heroku create,
it will go ahead and randomly pick a subdomain name for us.
However, I'd like to pick my own subdomain name.
And this is the alternative right here.
You say heroku create and give it some subdomain name that is a valid string,
could be a subdomain.
In this case you could see I picked My GitHub username -course5, and
you could pick whatever you want.
Obviously, do not pick this particular one since I'm going to be using it, so
it's probably not going to be available anyway, and you probably want to
pick something that is associated with you, not with my username.
So I'm going to go ahead and copy this command right here,
but before I go, note this bold statement here.
It says here, from this step forward,
we want to make sure that you are located in the restaurant-server directory.
In other words, we need to be inside our git repository for restaurant-server.
And if not, we need to navigate there using the cd server.
Let's go back to the terminal, let's do pwd,
which tells us where we are and we're inside the coursera-projects.
We'll do an ls to see, and
we see that the restaurant-server is directly right beneath that.
So let's go ahead and cd into that directory, let's go ahead and
clear the screen.