Learning MongoDB
2h 52mBeginner2022-12-16
Authors

Justin Jenkins
Full Stack Developer
Course details
Excelling in an ever-changing software development world requires true "full stack" experience. Knowledge of nonrelational databases, in particular, adds exciting new capabilities and features that make everyday development easier, more streamlined, and vastly more scalable. This course provides an introduction on how to use MongoDB, one of the most popular nonrelational databases in the world. Discover how to create documents to store data, organize documents in collections, and write queries to read, update, and delete documents in MongoDB 5.0. Instructor Justin Jenkins shows how to properly index data to increase performance in MongoDB, as well as how to integrate MongoDB with applications in Python, PHP, Node.js, and Golang. Learn about basic server administration, including new content on replication, sharding, security, and backup procedures. Make sure to practice your newfound MongoDB skills using the challenge and solution sets issued along the way.
Skills covered
MongoDBDatabase DevelopmentDatabase ManagementLearningOpen SourceSoftware Development
Concepts
Introduction
- Modern database and application design with MongoDB
Getting Started
- Why MongoDB
- MongoDB vs. relational databases
- Using the exercise files for this course
- Getting started with GitHub Codespaces
- Install MongoDB on Windows
- Install MongoDB on macOS
- Importing example data
Documents and Collections
- Create a document
- Using .find() to query documents
- What can you store in a document
- Collections
- Challenge - Create a recipe document
- Solution - Create a recipe document
Querying
- Sort, limit, and skip
- Working with operators and arrays
- Updating documents
- Updating arrays
- Deleting documents
- Challenge - Write a query
- Solution - Write a query
- The MongoDB Shell
Data and Schema Modeling
- How you need to think differently
- Basic indexes
- Using different collection types
- Challenge - Avoiding joins
- Solution - Avoiding joins
Coding with MongoDB
- Python
- Node.js
- PHP
- Golang
- How to use GridFS to store files
Server Administration
- MongoDB config file
- Replication
- Sharding
- Authentication and authorization
- Backups
Conclusion
- Wrapping up