Getting Started with MongoDB and NodeJS

Before we kick start Node application lets start by creating a MongoDB database and credentials. Though creating database, could have been achieved by using Node, but that would not provide us with user & password. And I believe no one would want their database to be accessible to everyone. 😀
I hope you have got MongoDB installed on your machine, just start up the server and open command prompt.

>mongo
MongoDB shell version: 2.0.6
connecting to: test
>use supaldubey
switched to db supaldubey
>db.addUser('supal', 'key')

Node Code Follows!