The Complete Developers Guide to MongoDB
Master MongoDB and Mongoose design with a test-driven approach
Master MongoDB and Mongoose design with a test-driven approach
MongoDB is the hottest database solution in the tech world right now, able to power anything from your growing personal project to an enterprise infrastructure.
NodeJS focused? Yep. Test Driven Exercises? Absolutely! Advanced Features of MongooseJS? You know it.
This course will get you up and running with MongoDB quickly, and teach you the core knowledge you need to deeply understand and build apps centered around Mongo.
We'll start by mastering the fundamentals of Mongo, including collections, validations, and common record manipulation techniques. Source code is provided for each lecture, so you will always stay up-to-date with the course pacing. Special attention has been paid to creating reusable code that you'll be able to make use of on your own fantastic projects.
If you are new to MongoDB, or if you've been working to learn it but sometimes feel like you still don't quite 'get it', this is the MongoDB course for you! To learn MongoDB you have to understand it.
I've built the course that I would have wanted to take when I was learning MongoDB. A course that explains the concepts and how they're implemented in the best order for you to learn and deeply understand them.
FAQ area empty
Project Overview
Xem trướcThe Test Helper File
Mongoose Connection Helper
Xem trướcMongoose Models
More on Models
The Basics of Mocha
Running Mocha Tests
Creating Model Instances
Saving Users to Mongo
Dropping Collections
Mocha's Done Callback
Mongoose's isNew Property
Default Promise Implementation
Test Setup for Finding Users
Making Mongo Queries
The ID Property - A Big Gotcha
Automating Tests with Nodemon
Finding Particular Records
Many Ways to Remove Records
Class Based Removes
More Class Based Removals
The Many Ways to Update Records
Set and Save for Updating Records
Model Instance Updates
Class Based Updates
Minimum and Maximum Values in a Collection
Solution to Min and Max Queries
Challenge Mode - Search Query
Sorting, Limiting, and Skipping Together
Danger! Big Challenge Ahead
Filtering By Single Properties
Filtering with Multiple Props
Handling Text Search
Indexes and Text Search
Batch Updates
The Hidden 'Multi' Setting
Seeding Many Records
Counting the Result Set
App Overview
Designing API Routes
Project Setup
HTTP Request Methods
The Basics of Express
Express Boilerplate
Handling Requests with Express
Testing Express Apps with Mocha
Running Mocha
Project Structure
Refactoring for Controllers and Models
The Driver Model
The Create Drivers Route
The BodyParser Middleware
Testing Driver Creation
More on Testing Driver Creation
Additional Mongoose Setup
Driver Implementation
Testing Endpoints with Postman
Dev vs Test Environments
Separate Test Databases
Middlewares in Express
Handling Editing of Drivers
Testing Driver Updates
Handling Deletion of Drivers
Testing Driver Deletion
Geography with MongoDB
The GeoJSON Schema
GeoNear Queries
Testing a GeoNear Query
One Big Gotcha
Another Big Gotcha
Testing GeoQueries
All you need is a Mac or a PC
Understand how MongoDB stores data
Gain mastery of the most popular MongoDB interface, Mongoose JS
Write efficient queries for reading data
Learn the purpose of each of Mongoose's functions
Design effective NoSQL schema with both data nesting and lookups