Lecture 5 - MongoDB with NodeJS
What will you learn
Install Node.js if not installed
Install MongoDB Server
Connect to MongoDB server
Create database on MongoDB server and get database object
Get the collection object in the created database

Install Node.js if not installed
Install MongoDB Server
Connect to MongoDB server
Create database on MongoDB server and get database object
Get the collection object in the created database
The Node.js file system module allows you to work with the file system on your computer.
To include the File System module, use the require() method:
var fs = require('fs');Read more
Node.js has a built-in module called HTTP, which allows Node.js to transfer data over the Hyper Text Transfer Protocol (HTTP).
Read more
Consider modules to be the same as JavaScript libraries.
A set of functions you want to include in your application.
Node.js has a set of built-in modules which you can use without any further installation.
Look at our Built-in Modules Reference for a complete list of modules.