
Compare MongoDB with MySQL, install and use the Mongo shell, connect to a Node.js server, model data with schemas and Mongoose, and explore scalable design and replication basics.
Meet the instructor, Nick Vere egg, a full-stack developer who works with MongoDB, NoSQL, and RESTful APIs; he introduces MongoDB and explains what makes it different from relational databases.
Explore how MongoDB is a non-relational, document-based database with dynamic schemas and flexible JSON documents. See how auto charting, replication, and data localization enhance scalability and reliability.
use mongodb for rapid prototyping and agile teams, enabling quick creation of collections and dynamic schemas to support minimum viable products and iterative changes without disrupting teammates.
Learn the installation prerequisites for MongoDB using Homebrew, including creating data/db directories, setting permissions, and navigating macOS, Windows command line, and Unix-like systems.
Install MongoDB community edition on Mac via Homebrew, then configure /data/db and set proper permissions. Start the mongod daemon and connect to the mongo shell to run basic commands.
Learn to create a MongoDB database called snack time in the shell, insert a document into the favorite snack collection, and perform find, update, and remove operations with pretty results.
Launch the Mongo daemon and use the Mongo shell to create snack time, add a favorite snack collection, and insert and query documents with snacks and prep time.
Update documents in a MongoDB collection using update one and update many, with filters and the $set operator, then add prep time and remove a document.
Learn how to add MongoDB to your application with Node.js and Express. Understand the basic setup for MongoDB integration and how to do it the right way to support scalability.
Set up a local Node.js server on localhost port 3000 and learn how its single thread uses non-blocking I/O and an event loop to handle requests, often alongside MongoDB.
Learn how npm manages node project dependencies with package.json and package-lock.json, install mongoose and other libraries, and build a restful api with express.
Explore restful APIs with MongoDB, learning atomic, decoupled CRUD operations, domain-driven design, and modular controllers to build scalable, testable backend endpoints.
Create an Express application and set up MongoDB integration using Mongoose and Bluebird, configure routes and a db connection for snack time, preparing for schemas and models.
Learn to set up a free cloud MongoDB deployment using M lab's sandbox, create a user, connect via shell, and insert and view data in the snack collection.
Connect a cloud-hosted mongodb to our node app by updating the db.js connection details and performing a shell insert verified in mlab, then run npm start to confirm.
Develop and test express routes by creating a get /snack and a post /snack/favorite, returning json data and using postman for requests and browser tools to view responses.
Set up a controller to handle snack post requests, extract business logic from endpoints, validate snacks such as popcorn, and test with postman to ensure proper responses.
Learn how mongoose schemas define document shapes, cast types, and enforce validation, with features like defaults, timestamps, references, and hierarchical schemas for secure, predictable MongoDB apps.
Define MongoDB schemas by specifying types like string, date, boolean, arrays, and object id, and add validators, indexes (plain, unique, sparse), and references to other collections, with timestamps enabled.
Create a new schema file in a schemas directory using Mongoose, defining snack with string and boolean properties and enabling timestamps, then export the snack model.
Create a snack model in the schemas folder and insert a test document using Mongoose with Bluebird promises, then expose a /snack/new endpoint to verify the insertion.
MongoDB for absolute beginners shows organizing by domain with separate schema and model files and per-collection controllers, and explains how Mongoose schemas enforce structure over dynamic schemas.
Add a required validator to a MongoDB schema and optimize development with automatic server restarts. Test post routes with Postman, customize validation errors, and explore function-based validators for conditional rules.
Learn to define custom validators and enums in a MongoDB schema, including a regex that forbids plural endings, and numeric min/max checks with descriptive error messages.
Define default values in a MongoDB schema and see how prep time defaults to 15 when not specified, while explicit values override the default in the document property.
Perform a basic MongoDB query using an empty object with dot find to return all snack documents via the /snack REST endpoint.
Define a query by a document property to fetch documents where snack equals cupcakes, wire it through a snack controller and snack/type endpoint, and verify cupcake results.
Set up a dynamic endpoint parameter snack type, read it in the controller from the request, and inject it into the model query to fetch matching snacks like bananas.
Rename controllers and endpoints to semantic names like get all snacks and get snack by type. Update models and test endpoints with postman to verify correct snack data in MongoDB.
Learn how to perform dynamic inserts in MongoDB by mapping request body to a snack document, calling the controller, testing with Postman, and adjusting validations to save new documents.
Insert an ingredients array into a MongoDB document and practice array queries. Build a snacks document with sugar and butter and explore array querying options.
Explore array query operators to match documents by array values, including all, any, or none of the specified items, with examples using ingredients like sugar and butter.
Demonstrate using the MongoDB $all operator to query documents whose ingredients array contains all specified ingredients, wired through a snack controller and query string.
Explore the in operator to query a collection for documents where a property matches cold or warm values, and extend this to querying array fields.
Add a tags array to the snack model and query it with the $in operator to return snacks that match at least one tag.
Explore the not in operator (nin) in MongoDB by querying the ingredients field to exclude cheese and butter, using an includes flag to switch between include and not in results.
Explore MongoDB query operators for range filtering by prep time, using get by prep range with low and high, applying greater than and less than filters to snacks.
Learn to update existing documents in MongoDB by modifying array elements with the $ operator. Return the updated document and wire the update through model, controller, and put routes.
Master updating many MongoDB documents by mass updating array elements, such as setting butter or margarine across records, using postman put requests to modify multiple documents at once.
Implement dynamic updates in MongoDB by passing an operation (add, update, remove), a document _id, and an ingredients payload to modify a single document's ingredients array.
Learn to manipulate arrays in MongoDB using $pull to remove items and $addToSet to add unique elements, demonstrated on a document identified by object id, with duplicates prevented.
Create a generic update method and controller to update any document property by id using $set, enabling dynamic non array values.
Remove a document by its unique object id using a dynamic delete endpoint, returning the deleted document so you can verify it's gone from the collection.
Create a user schema and model in mongoose, then reference its object id from the snack schema to add a new collection, and test with postman.
Learn how to embed documents in MongoDB by referencing user data in a snack schema, using object id, population, and selective field display to mimic joins.
Learn to set up replica sets and shards in MongoDB, using mongod processes, rs.initiate/rs.add/rs.status, mongos routing, config servers, and shard keys with indexing.
Learn how indexes optimize MongoDB query performance by avoiding collection scans and using a sorted data structure, such as the prep time index.
Learn how to implement unit testing with the Just library in a Node and Mongoose setup, including testing the create method for a user document and cleaning up after.
Learn how to paginate MongoDB results in the shell using skip and limit, with pretty-printed output, and apply page-by-page queries from a front end using these controls.
Become an expert from ground up in MongoDB with this carefully structured course!
MongoDB is a NoSQL database program. It uses JSON like documents with Schemata. This contributes to the ability of MongoDB to function perfectly on a tiny RAM. MongoDB proves to be fast running as well when compared to other DBMSs (Database Management Software). MongoDB is also highly flexible and for companies that are considering scaling their businesses, MongoDB is an excellent choice for a database. Because of its ability to handle a gigantic quantity of data, it can be used in teams comprising a vast number of people.
MongoDB is simple to use but still considered immensely powerful along with being able to solve the general issues of load-balancing, storing and indexing.
The evidence of MongoDB’s ability lies in its list of clients. Some of those big names are IBM, GAP, Urban Outfitters, eBay, Google, MTV, Uber and many more.
What makes this course so valuable?
MongoDB’s popularity continues to grow across the world as more and more people are realizing its benefits. So, consequentially, resources for learning and understanding MongoDB are on high demand.
If you are a beginner in MongoDB, this course will help you figure out the fundamentals of MongoDB. Mainly users struggle with understanding the terms associated with it. This course is particularly helpful for that.
Venture through all the concepts of MongoDB; from the basics such as installing MongoDB to more advanced topics like replication, database sharding and how to connect your MongoDB with an active Node.js server. You’ll also learn what makes MongoDB unique among other NoSQL databases. You’ll also become familiar with local databases and cloud services.
There are many labs and exercises to ensure that you understand every topic and ensure that you are fluent in the subject.
The course includes
Installation and connecting with an active Node.js server-side
Connecting to Cloud services and Mongo Shell
Mongoose Library
Package manager and RESTful API
Connecting the database to the application
Basic query and query properties
Dynamic inserts and inserting arrays
Error handling and schemas
Quizzes
And much more!
Learning MongoDB just got a whole lot easier! Try this online tutorial today.