Following RESTful Web Services with Node.js and Express course on Pluralsight
npm init
npm install express
npm install nodemon
"nodemonConfig": {
"restartable": "rs",
"ignore": [
"node_modules/**/node_modules"
],
"delay": "2500",
"env": {
"NODE_ENV": "development",
"PORT": 4000
}
}
To import data into your mongoDB database run the following in cmd.
mongo bookApi < booksJson.js