To import the books data into MongoDB:
-
Make sure mongod is running by typing mongod - you should see it start up concluding with
waiting for connections on port 27017
-
From the command line inside the project directory, type:
mongo bookAPI < booksJSON.js