- 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.
- ExtGWT Rich Internet Application Cookbook
- JavaScript百煉成仙
- Objective-C Memory Management Essentials
- Redis入門指南(第3版)
- Java技術手冊(原書第7版)
- Magento 1.8 Development Cookbook
- Mastering JBoss Enterprise Application Platform 7
- C語言程序設計
- Test-Driven Machine Learning
- IDA Pro權威指南(第2版)
- Java編程從入門到精通
- Redmine Cookbook
- Java EE 8 and Angular
- SCRATCH編程課:我的游戲我做主
- Mapping with ArcGIS Pro