By leveraging the Node.js middleware “express”, we can create functionality for viewing, adding or deleting JSON data.
The goals for this article are:
* Allow the user to view all data in the database
* Allow the user to make a JSONP call to get all data
* Allow the user to add a new name to the Sales database
* Allow the user to delete all data in the database
When completed, this will be far from a robust or production-ready application, but we will, at minimum, learn how to view / add / delete data in our MongoDB database, using clean URLs in the browser.
Your new post is loading...