Postman + mlab

Here is the code from my study notes while working with Postman to add “Documents” to the “Collection” in a database hosted online in mlab. Here is also code to pull the data from the database and show it the browser and the “Terminal Console”.

File Tree:

Here is the PostMan Google Chrome configuration to add documents to Collection:

Now Here is the code of the Files:

SERVER.JS

01-TEMP1.JS

PACKAGE.JSON

Using this code I was able to add documents to my DataBase on mlab.

Here is the PostMan Google Chrome configuration to UPDATE documents FROM Collection:

Here is the PostMan Google Chrome configuration to DELETE documents FROM Collection:

.



Copyright 2017. All rights reserved.

Posted August 6, 2017 by Edmundo in category "Node