bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/Node.js/Database Integration
Node.js•Database Integration

Node.js MongoDB

Flash cards

Review the key moves

1/4
Core idea

What is the main idea behind Node.js MongoDB?

Lesson checks

Practice each idea before moving on

Short Mimo-style checks built from this lesson's code, terms, and sequence.

1Quick choice

Which statement best captures the main point of this lesson?

2Fill blank

Complete the missing token from the example code.

>___ install mongodb
3Order

Put the learning moves in the order that makes the concept easiest to apply.

To be able to experiment with the code examples, you will need access to a MongoDB database.
One of the most popular NoSQL database is MongoDB.
Install MongoDB Driver

Node.js can be used in database applications.

One of the most popular NoSQL database is MongoDB.

MongoDB

To be able to experiment with the code examples, you will need access to a MongoDB database.

You can download a free MongoDB database at [https://www.mongodb.com/ .

Or get started right away with a MongoDB cloud service at [https://www.mongodb.com/cloud/atlas .

Install MongoDB Driver

Let us try to access a MongoDB database with Node.js.

To download and install the official MongoDB driver, open the Command Terminal and execute the following:

Download and install mongodb package

C:\Users\
Your Name
>npm install mongodb

Now you have downloaded and installed a mongodb database driver.

Node.js can use this module to manipulate MongoDB databases:

let mongo = require('mongodb');

Previous

Node.js MySQL Join

Next

Node.js MongoDB Create Database