Clone the RESTful API Using Node.js for the Live Demo of the "Material Design Data Table" at http://danielnagy.me/md-data-table/.
-
Get all the data from https://infinite-earth-4803.herokuapp.com/nutrition/desserts/.
-
Save the data as "desserts.json".
-
Remove the characters before "[" and the last character "}".
-
Make sure the MongoDB service has been running.
-
Run the following command:
$ mongoimport --db nutrition --collection desserts --file desserts.json --jsonArray