Hello, friends.
Welcome back.
In this video, we will install Mongul DB and I'm using Mac to install mobility on Mac.
I'll be using home too, so you need to come to do the message.
And if you're using any other system, so you need to go to Modiba dot com and you can check out the
docs.
OK, so there are different, different ways of installation.
OK, so if you are using Mac, you can check out this.
If you're using windows, you can click on this link and you can see what is the installation process.
OK, so I'm using the Mac so I've already installed home do but still for demonstration.
I will install it again.
So let me copy this file and then we need to go to the terminal and guarantees the link, replace the
code.
We have copied it and so it will ask you for a password.
So let me into my password.
Please enter to continue.
So it is downloading and installing home to maybe sometimes a bit of computer already installed, so
it updates.
So installation is successful, as you can see now I'll go to the installation and your there's an option.
Let me check it out for install on Mac if you if you click here.
So that is there is a command which we can which we need to install.
So yeah, that is OK.
So to download Officer Loomba formula for would it be understood by running the polling company in.
So let's copy this.
And let me first clear this out, OK?
You start to enter, it's done.
Now, let me get this straight and does.
So now it is interesting what we'll be some unity, which is that it is already installed, so it's
fine.
I told you that I have already started.
So now we need to make a delivery for that.
So for that, let me clear this out.
Then we need to try to make the media and be spaceless dataflow Stevie into it will ask you a password.
So you need to enter it now.
We need to take the permission, but all the permission, not correct or not.
So for that, we need to see it in space I our capital and then go back to the ID.
I've seen you practically lose their status as protector.
So OK says it's not found.
So let me take the location so we do something like this.
So let's see this.
Maybe it's OK, it's done so it was my typo or something I did not required.
I think so.
OK, so this is done.
Now let's check whether Libby is installed or not.
So for that, we need to write more DB intenta.
So we need to write Mongo DB and hit enter.
OK, so let me give you something like this.
So it means that it is looking over little different.
Now we don't take this, so let's minimize this and let's go to our results to the code and insert my
blog back.
And what I'll do is I'll write Mongul.
OK, so if I hit Enter now this is the shell, OK, that you can insert the data from where you can
create the database as well as you can enter the data.
OK, so first thing we will do is we will create a new database for our blogsite.
We need to simply type use and then we need to write my log.
So whatever database name you want to give, you can.
But I'm giving my block, OK, and then I'll switch it to switch it to the database.
My block.
OK, fine.
So now now what we will do is let's clear this out to clear that ci a..
CI a..
OK, so I've cleared the screen, so you will be able to see now what we can do is we will add this
data, this figure to inside our database.
OK, so we'll work on this.
So the way we do is is like the would be in what would it be?
We have collections and this collection can contain any number of Jason objects and we call this object
as documents.
So we will create a collection of articles which will contain the article in full, OK.
And so for that we need to type Debe Dot articles.
OK, this is the name of the collection and we need to insert our data.
So insert and parentheses and then we need a square bracket.
OK then polyposis and we need to write a name that is going to be learn the act of.
This is the first article then foma then we have moments that will be an empty edit.
Right then we need to close this foma open this early versus now again we need to write a name and this
will be long road.
OK then formants.
Knows this.
OK, good.
We need.
That's what the comma and then mean, then we have my thoughts on the react.
The men's.
OK, then we need to close this record and then clavichord and then tenanted these hit enter.
So as you can see in three records, so it says that it does inserted three records.
OK, so three records were inserted successfully.
And to find articles, we need to write DB articles, not fine.
And inside this, spirits of these people add an object.
OK.
And so, as you can see, we are getting on this ID name and coming.
So so Modiba, add ID property on this as well.
And if you want to beautify this, so what we can do is like dbe dot com undeceived but then we can
pretty.
And then get into this and so you can see we are getting.
A good looking object is an object, and now if you want to find a particular article, then what we
have to do is we need to type the name of the article.
So name and that is going to be long.
We enter there to give you that particular article.
OK.
And you can do find one also.
So find one.
Enter button, find one you can't use.
So let me move this committee and find you.
So as you can see, we can find one article using find one.
So this is how we have entered the database and we'll be showing the next video.
We will connect this database using Express.
OK, so this is it for this video and I'll see you in the next video.