This is an application that uses the MongoDB Node.js driver to connect to a MongoDB cluster hosted on MongoDB Atlas. The Node.js driver is a library of functions that you can use to connect to and communicate with MongoDB.
The project consists of:
- Create the node app.
- Create the
index.js
andstudentsCrud.js
- Within
index.js
point towardsstudentsCrud.js
usingexecuteStudentCrudOperations()
- Connect to Atlas cluster using
connectToCluster()
- Create
createStudentDocument()
function to insert the student document with data - Drop the collection once finished using
dropStudentCollection()
function