Below are the step to setup the development environment of node.js using Mongodb:

  1. Open terminal and add the repo executing follwing command on console
  2. Execute
  3. Execute
  4. Once installation completed execute

    to check the node.js version and make sure that node is install properly
  5. When we install the node.js we have also installed npm (node package manager)
  6. Excute

    to insure that node package manager is installed properly

Now we are done with node.js installation. Now we need to install mongodb. Below are the step to install mongodb :

Again we will install the mongodb from terminal.

    1. Open terminal and import the public key using

      command

Execute command

  • Execute
  • Execute

    for installing the mongodb. You can also specify the version of the mongodb eg(sudo apt-get install mongodb-org=2.6.1)
  • Once You are done with mongodb installation execute

    mongo –version

    to make sure that mongodb is installed properly.

Now we are ready to develop web application using node.js. In my next blog you can find how to create web-application using node.js.