- Web Development with MongoDB and Node(Third Edition)
- Bruno Joseph D'mello Mithun Satheesh Jason Krol
- 148字
- 2021-07-08 10:32:42
Getting the dependent modules in place
Before we start to write any Node.js code, we need to get our dependencies in place by using npm. Since this is a basic app, we will be using it to test our Node.js connectivity with the MongoDB server. So, the only dependent module that we need is the native MongoDB client for Node.js. We can easily install that by executing the following command:
$ npm install MongoDB --save
After npm installs the MongoDB driver, you can list the contents of the directory and you will notice that a new folder was created, node_modules. This is where, surprisingly enough, all Node modules are stored whenever you install them from npm. Inside the node_modules folder, there should be a single folder named MongoDB. Also, you will notice that the package.json file of our sample application will be updated by this new dependency entry.
- The DevOps 2.3 Toolkit
- Progressive Web Apps with React
- Java入門經典(第6版)
- Windows Server 2012 Unified Remote Access Planning and Deployment
- AIRIOT物聯網平臺開發框架應用與實戰
- Node學習指南(第2版)
- OpenCV 3 Blueprints
- 和孩子一起學編程:用Scratch玩Minecraft我的世界
- 數據結構與算法詳解
- HTML5程序開發范例寶典
- Node.js Web Development
- C++從零開始學(視頻教學版)(第2版)
- Prezi Cookbook
- C#程序開發教程
- Visual C++ 2017網絡編程實戰