- 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.
- TypeScript Essentials
- 在最好的年紀學Python:小學生趣味編程
- Mastering ServiceStack
- LabVIEW2018中文版 虛擬儀器程序設計自學手冊
- Java Web開發之道
- Practical Data Science Cookbook(Second Edition)
- C程序設計案例教程
- Mastering KnockoutJS
- 深入淺出RxJS
- 軟件架構:Python語言實現
- Mastering Drupal 8 Views
- Mastering Git
- Mastering Web Application Development with AngularJS
- Hands-On Kubernetes on Windows
- Raspberry Pi Robotic Projects(Third Edition)