- 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.
- 數據庫系統(tǒng)原理及MySQL應用教程(第2版)
- Python數據分析基礎
- 數據庫系統(tǒng)原理及MySQL應用教程
- Full-Stack React Projects
- Easy Web Development with WaveMaker
- 人人都懂設計模式:從生活中領悟設計模式(Python實現)
- Visual FoxPro程序設計
- Go語言編程
- Java圖像處理:基于OpenCV與JVM
- 自學Python:編程基礎、科學計算及數據分析(第2版)
- Delphi開發(fā)典型模塊大全(修訂版)
- 計算機應用基礎案例教程(第二版)
- Visual FoxPro程序設計實驗教程
- C++ Data Structures and Algorithm Design Principles
- C語言從入門到精通(微視頻精編版)