Skip to main content

MongoDB

MongoDB is a document oriented Database and it is written in C++.Because of its cross platform it is widely used in industries.At the same time its performance,scalability and availability also high.
MongoDb is a NoSQL database.

Advantages of MongoDB
1.Number of fields and size can differ from documents.
2.Deep query ability
3.No complex joins.......
Where it is used
1.App relational database
2.Data hub
3.Huge data management.
4.Social infrastructure.


After install the MongoDB in your laptop.You can carry out your tasks as you want.
So our next question is where we have our works in laptops?Our works will be in terminal(ubuntu),command prompt(windows).Yes when pay our view towards terminal face works.

In terminal there are two main steps to do our mongoDB works
1.sudo mongod
2.sudo mongo
actually here we start the server and client side respectively.So why we used sudo here.sudo means it detect the whole laptop and find out and start ,no need to start the work on terminal from exact position.

Now we ready to do our works.
1)So now we have to create a database.
2)To see the database in my laptops











3)To find out at what database currently i do my work

4)To delete the database which i have created
(before this we find out the current position so we can drop the database as follows it means it drop the current DB if you want to drop any other, than current you can switched in to it as use databasename and enter db to find location and drop)



5)To create a collection in to the database.



6)To drop my collection
<db.songsdetails.drop()
7)To see my all my collection
<show collections
continue...

















































































Comments

Popular posts from this blog

  Node.js What is Node.js? Node.js used as back-end (server-side) language in the development. As usual client/user deal with the front end of the applications.There are much process behind that , we call it as back-end.There, we used several languages like Node.js, php and java as server side languages and MongoDB or MySQL as data base. Node.js is an open-source ,cross-platform javascript runtime environment and library for running web applications outside the client's browser.It is a server-side platform built on Google Chrome's javascript engine(V8 Engine).Node.js was developed by Ryan Dahi in 2009 and its latest version is v14.13.0. Node.js applications are written in javascript and can be run within the Node.js runtime on OS X,Microsoft Windows and Linux.                      Node.js = Runtime Environment + JavaScript Library. Reference ( Simplilearn youtube channel, Node.js documentation)

GIT HUB

Git hub is a web based hosting service for version control using git.Git hub is a project based management system.It is a good platform for the developers.Git hub is a SCM(Source Code Management. Now we can go through the git hub installing and coding. 1) Installing a git hub in a Linux (in Linux all coding are followed in terminal)         sudo apt-get install git 2)Configuring git hub    When we completed our installing after that we should have to configure our account as follows          get config -- global user.name "user name"           get config -- global user.email "email id"   once we configured our account no need to configure each time. Mainly seven steps are available to push the files in to git hub 1)git<>init 2)git<>add<>./* 3)git<>status 4)git<>commit<>-m<>detail 5)git<>remote<>add<>origin...

API

API stands for Application Programming interface.API is an interface used by programs to interact with application,which mean that API allow the applications  to communicate with each other. Really API is not a database or server,API is the code that give the access point for the server.