MongoDB and NodeJS in action


Overview

MongoDB is a popular NoSQL database used for building modern, scalable applications. In this article, we’ll cover how to set up MongoDB on Windows and connect to it using Node.js. We will also perform some basic Create, Read, Update, and Delete (CRUD) operations to ensure we understand fully on how Node.js can be made to interact with MongoDB.

Prerequisites

Before we begin, make sure you have the following installed on your Windows machine:

Node.js and npm: Download and install from https://nodejs.org MongoDB: Download and install the MongoDB Community Server from https://www.mongodb.com/try/download/community MongoDB Compass (Optional): A GUI