Okay.
In this video, I'm going to show you how we can deploy our front end application to the server and
we can do it absolutely for free.
And the service that we will use for doing that is Firebase.
So you can go to firebase.google.com to the website and this is platform as a service so you can read
more about this.
And basically that's a service that has a lot of features.
Usually what we think about Firebase is a kind of database that is very start to be very popular and
it's from Google.
So a lot of people use a firebase, but it's not just a database, it is a service with a lot of different
useful features.
One of the features that we will use is the hosting.
So basically what we can do is we can push our application to the Firebase hosting and it will be there
and it's absolutely free.
So what we can do is we can go to pricing here and you can see here a spark plan is free.
And it also includes if we go back to the hosting.
So we have our storage here up to five gigabytes and then one gigabyte a day.
That will be more than enough for for us to store our small obligation.
Or you can see here hosting and we have one gigabyte and then a gigabyte transferred.
We have ten gigabytes a month.
So that's a lot for a small application.
If you are ever need more, you can go for a paid plan and you have a prices here.
So basically our goal is to put our application for free online and we can access that from a URL.
Okay.
So what you will need to do is you will need to create a new account with a firebase and you can do
that in here.
I already have that account in my in Firebase so I can do go to console, but you will need to sign
up for the service.
And what I have here is I have all my projects at the moment.
I have only one project here and I can create as many projects as I like.
And you can see here you can use a user interface to create a new project.
So we could do that as well with a command line interface.
Comes with a CLI so we could do the same thing with a CLI using some commands in the terminal to create
the application.
But I will show you how we can do that with a user interface.
So I will add a new project and then we can put here a sample application.
Like, for example, this one.
So we'll get a custom ID and we can name our project, I will name it movie rater, and I will go Continue.
And then you have Google Analytics for Firebase Project.
You can enable Google Analytics or not, and you can see a simple explanation What is actually AD I
can uncheck it because I don't need it.
If you have a Google Analytics account, then you can link it and use it.
We don't need to do it here, so I will create a new project.
In My new project is ready.
I can click continue and you can see here that my new project.
So basically what we have here is we have a lot of different features.
So you can see a firebase comes with an authentication cloud, Firestore and Crashlytics performance
and so on and so on.
So basically a lot of different services.
You are free to go and explore all of them.
What we are interested in here is the hosting, so I can click on hosting here and you can see here
you can do a click started or you can watch the introduction here.
So and you can explore how the hosting works.
But basically what we'll need to do is we need to enable the hosting.
So in order to start with a firebase hosting, what we'll need to do is we'll need to get started clicking
here and that will be a set of instructions that will need to perform in order to deploy our application
on Firebase.
So first thing what we'll need to do is we'll need to NPM install G Firebase tools.
So basically we have already installed the new use command install G like a global.
So globally you will install firebase tools.
That means you can use a firebase command to trigger something.
So you can see here you have a firebase login and so on.
That will be the commands that we will use later on.
So first thing, what you need to do is you need to make sure you have that CLI installed.
I do have it installed on my machine in order to check it.
If I have it, I can do Firebase Dash dash version.
And once you see a version here, that means you have a firebase installed on your machine.
So that will be the first step to do.
So in order to deploy our application, you will need to first create your account in the console firebase
Google.
Then you will add a new application and then you will need to install Firebase tools.
The next step.
What we need to do is we need to do Firebase login.
So basically if you do fire base login here, it will.
Firebase will ask you for credentials and that credentials will be the same as you have it when you
create this account.
So you have an account here on the console firebase and you use your username and password or email
and password and that one you will need to use it.
Also here.
I'm already logged in with a firebase.
I have Firebase installed, so in the next video I will show you how we can actually get it from there
and we can deploy our application with a command line interface.