Video description
Using MongoDB with Node.js is the fourth title in Wes Higbee's explanation of all things Node. This course details how to store data - as documents - coming from your JavaScript apps into MongoDB.
There are two popular approaches to interacting with MongoDB: The native driver and Mongoose. In this video, you'll learn about both of these, when to pick one over the other, and something else equally important (and often neglected): How to write maintainable asynchronous MongoDB communications code. Web app developers with a strong command of JavaScript, those wanting to incorporate server-side programming into their development, and those wanting to better understand NoSQL database technology will appreciate this step-by-step guide to using MongoDB with Node.js. Working files are included, allowing you to follow along with the author throughout the lessons.
- Understand how the native Node.js MongoDB driver works
- Learn to use the Mongoose ODM to communicate with a MongoDB server
- Compare asynchronous coding styles: callbacks, promises, generators and async/await
- Learn how to serialize JS objects to documents stored in MongoDB.
- Explore basic CRUD operations with MongoDB.
- Practice debugging, error handling, logging, and monitoring.
Table of contents
-
MongoDB
- Welcome 00:08:23
- About The Author 00:01:23
- The Sample Application 00:05:31
- JSON Analogy 00:04:01
- SQL Vs DocumentDB 00:07:48
- Running MongoDB Locally 00:03:01
- Connecting With Mongo CLI 00:03:13
- Robomongo 00:01:49
- Inserting Documents 00:03:30
- Objectids 00:00:42
- Inserting Users 00:07:49
-
The Native Driver
- MongoDB Node.js Native Driver 00:04:51
- Inserting Documents From Node.js 00:02:47
- DB.Close() 00:01:06
- Querying Rooms 00:07:10
- Create Rooms 00:02:02
- Deleting Rooms 00:07:09
- Finding A Room By ID 00:05:10
- Replacing Documents 00:05:27
- Handling Errors 00:03:40
-
Sanity With Promises
- Why Promises 00:01:04
- Connect With Promises 00:06:07
- Querying With Promises 00:02:27
- Promise Control Flow Debugging 00:03:10
- Simplify Error Handling With Promises 00:04:05
- Promises Handle Throws Too 00:01:58
- Promises Cache DB Connection 00:03:53
- Chaining Promises To Further Simplify 00:04:44
- Extracting A ChatDB Module 00:04:22
- Converting From Callbacks To Promises Part - 1 00:05:36
- Converting From Callbacks To Promises Part - 2 00:02:57
- Benefits Of Refactoring Callbacks To Promises 00:01:53
- Gracefully Closing DB Connections 00:03:03
- Promises Plus Generators With co 00:04:26
- co-express 00:03:37
- EsS016 Async Await 00:05:47
-
Getting Started With Mongoose
- Mongoose 00:02:47
- Importing Users With Mongoose 00:09:13
- Collection Names 00:01:46
- Disconnect 00:00:47
- Strict Mode Throw And Overriding Mongoose Promises 00:03:44
- Strict Mode False To Allow Extra Fields 00:01:36
- Schema Conversion And Validation 00:02:22
- Finishing The User Schema 00:01:50
-
Mongoose With Express
- Extracting A User Model Module 00:04:47
- Querying Users 00:03:25
- Connect Once With Mongoose 00:02:20
- Debugging Models 00:01:09
- Creating Users 00:03:20
- Finding A User By ID 00:03:27
- Saving User Changes 00:02:21
- Delete Users 00:02:21
- Decouple Mongoose Connect 00:06:50
- Catching Errors 00:02:16
- Showing Validation Errors 00:07:16
- Further Validation 00:05:13
-
Grab Bag
- Filtering Documents 00:07:02
- Using Query Operators 00:03:15
- Native Driver Logging 00:07:09
- Mongoose Logging 00:02:28
- Partial Update With $Set 00:03:55
- Unset And Rename 00:01:37
- To Replace Or Update 00:02:21
- Sriracha For Automatic Admin Portals 00:06:22
- Everything Is A Document 00:03:24
- Further Learning 00:08:19
- Challenge 00:02:38
Product information
- Title: Using MongoDB with Node.js
- Author(s):
- Release date: April 2016
- Publisher(s): Infinite Skills
- ISBN: 9781491959077
You might also like
video
NoSQL with MongoDB Video How-To
Skip the reading and learn by watching! Short, clear videos show you visually how to perform …
book
MongoDB Fundamentals
Learn how to deploy and monitor databases in the cloud, manipulate documents, visualize data, and build …
video
Getting Started with Node.js
In this Getting Started with Node.js training course, expert author Wes Higbee will teach you everything …
book
Web Development with MongoDB and Node - Third Edition
Use the two popular web development stacks, Node.js and MongoDB, to build full-featured web applications About …