Learn MongoDB From Scratch

Everything you need to master MongoDB
4.1 (16 ratings)
Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
90 students enrolled
85% off
Take This Course
  • Lectures 50
  • Length 2.5 hours
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works


Find online courses made by experts from around the world.


Take your courses with you and learn anywhere, anytime.


Learn and practice real-world skills and achieve your goals.

About This Course

Published 5/2016 English

Course Description

Data is a very popular buzzword in the technology industry right now. As more and more people move their activities online, the data companies and websites collect on them will become even more relevant. And guess what that means? Programmers and developers who know their way around databases – and more importantly, who can actually interpret and build things from them – will be in high demand. MongoDB is one of the most dynamic databases out there, so getting to grips with it sooner rather than later means you’ll stay well ahead of the curve.

Become a MongoDB Master

  • Gain an in-depth understanding of MongoDB’s capabilities
  • Learn how MongoDB can be used for web app design, development, testing and more
  • Set up a powerful development environment with an online IDE
  • Explore the impressive MongoDB Aggregation Framework
  • Build a complete web application fully integrated with MongoDB

Approach Data in New Exciting Ways

This MongoDB online course has been designed for web developers, web designers, web architects, testers, site administrators, and pretty much anyone who already has a working knowledge of web development.  Although it’s not vital, knowing how to build web UI components and a familiarity with NoSQL persistence will help. This course is absolutely not limited to developers only, however.

The goal is to provide a solid foundation of MongoDB knowledge. To get you up and running on building your own web apps with MongoDB at their core, and to help you understand the capabilities, functionality and limitations of what this database can do.

You’ll learn how to configure and run MongoDB, start importing data, and then quickly get stuck into creating new databases. You’ll pick up Mongo Query Language commands and dive into one of MongoDB’s most powerful features, the Aggregation Framework. You’ll work through detailed examples to gain an understanding of the various pieces of the puzzle, all the while learning about this database’s scaling, replication, and sharding abilities.

By the end of this course, those examples you’ve been working on will all fit together to form a complete, working web application that’s fully integrated with MongoDB. And not only that, you’ll have the confidence, knowledge and practice needed to start working on your own MongoDB projects straight away.

About MongoDB

MongoDB is an open source database with a document-oriented data model. It differs from a relational database in that instead of storing data in tables and rows, it stores JSON-like documents with dynamic schemas. Because of this, it lends developers the ability to create applications rooted in data in ways they never could before. 

What are the requirements?

  • A student should have a computer with a modern web browser available for viewing course materials and for working in a browser-based development environment
  • A student should have an understanding of the concepts of basic web development and at least some experience in web development activities utilizing, at minimum, a small collection of development tools.
  • A student should have some familiarity and experience with using a common programming language, either object-oriented or scripting (i.e. Java, Python, Javascript, etc.).

What am I going to get from this course?

  • Student should be able to compare and contrast the relational persistence model vs. the NoSQL model
  • Students should be able to set up and configure a development level MongoDB instance
  • Students should be able to write code to perform basic CRUD operations on a MongoDB instance (with both the Shell tool and a with a particular language’s syntax)
  • Students should be familiar with modelling data for use in MongoDB
  • Students should be familiar with MongoDB’s capabilities and operational tools
  • Student should be immediately productive in quality MongoDB development

Who is the target audience?

  • The target student for this course is a native English speaker who considers him/herself a practicing “web developer”.
  • The developer should, ideally, be capable of building web UI components but also needs an understanding of NoSQL persistence (MongoDB in particular) as applied in modern web environments. However, this course is not limited to developers only.
  • Any IT professional or hobbyist anticipating a solid understanding of how MongoDB works, how it's architected, administered, and/or developed for a web environment needs to enroll in this course.
  • The audience umbrella for this course spans web architects/ developers/ designers/ testers, site administrators, security assurance administrators, & product/ project/ IT managers.

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.


Section 1: Introduction to the Course
Welcome to MongoDB made easy!

I’ll explain how this course is organized,including a quick review of the course’s sections & our learning objectives.


We’ll view a quick demo of the completed course project so we know what we’ll be building over the course. A list of the features we’ll build to complete our project will also be reviewed.


Let’s create a Cloud9 account and set up a MongoDB project by pulling a version from Github. Then, we can install all of the tools we’ll need to build our project.


We now know what we’ll be learning & how we’ll learn it all. Plus we’re all set up to begin coding our project.

Section 2: Set Up Our Project
Section Introduction

Let’s create a new database and import some data.


We can use the Mongo Shell tool to check out our database, its collections, and data.


The Shell Tool is a Javascript editor as well and can execute Javascript on the fly. Let’s use some Javascript in the Shell.


We hit the ground running in this section! We’ve already set up a fully functioning project with data and have begun working with the Mongo Shell Tool.

Section 3: Start with Queries and Operations
Section Introduction

We can manipulate queries for retrieving data from our database. Let’s begin working with the ‘find’ command on our ‘Users’ data.


Let’s use the .insert() and .save() commands to Create data in a collection in two distinct ways.


We can Update existing data in a collection using the .update() command. We can also use $set:{} to add a field to an existing document.


Deleting data is very simple, as long as we know which document we want removed.


Now that our User Data is ready for display, let’s update our app so it will pass User Data from the database thru to the rendered web page.


We learned about the generality of CRUD operations & how simple they are to use. We then used these operations to shape up our User data and ready it for use in our app.

Section 4: Model New Entities
Section Introduction

What are the things we need to be thinking about when we Model our data for use in MongoDB?


We can work with models that are Simple or go for more Complex structures. Let’s consider speed and data types as we make modeling choices.


Let’s use our new knowledge to model the ‘Event’ document for our project.


Registry has some interesting characteristics. Let’s make good decisions when creating a model for our project and consider all scenarios.


We have learned MongoDB specific data modeling concepts and applied them in creating models for our project’s database.

Section 5: Indexing MongoDB
Section Introduction

Let’s look at how Indexing works in MongoDB and what kind of indices are available.


We can use Mongo commands to see which indices exist and how they’re used in a query.


Let’s go through the steps of Creating Indexes and optimize our project with faster queries.


We learned how indices work in MongoDB, why we need them, and how to optimize our existing database by adding indices where they are needed.

Learning Objective:Understand & use indices in MongoDB

Section 6: MongoDB Aggregation Framework
Section Introduction

We’ll discuss data aggregation from 10K ft and learn about pipeline processing & result sets.


Let’s walk thru Aggregation Pipeline Stages & see the significance of each. Then, let’s review the Pipeline Operators and see what each one does.


We can apply Aggregation Queries and Filters to create our project’s aggregated data. Let’s see how.


Now that we have Aggregated Data, we need to use it in our project. We will plug it right into our templates.


We learned how to create Aggregation Queries with the MongoDB Aggregation Framework. We then used Aggregation in our project to create new data from existing records and plugged that data into our HTML templates.

Section 7: Replication & Sharding
Section Introduction

Let’s find out what Replica sets are & how they work.


How do Replica Sets stay available? We’ll investigate..


Let’s find out what Sharding is and how it is configured.


What considerations are there when we are Sharding our data?


We reviewed the steps involved in Replication and Sharding of MongoDB databases and how instances work together when distributed. We can assume that availability and durability standards are provided with these techniques when we design apps for MongoDB.

Section 8: Our Web App
Section Introduction

Let’s review the current state of our project and how it got that way.


App.js is the heart of our app. Let’s look into how it drives our application.


We’ll look into how the aggregation functions work in our application.


We can now see how the ‘pieces’ of our app fit together and how JSON data is passed from MongoDB thru to the web pages.

Section 9: Course Outro
Section Introduction

A walk thru of completed checklists.


Let’s talk about some of the options, including: continued dev training & certification or admin training & certification. And don’t forget that you can use our project as a template for further experimentation.


Thank you again for taking this course. We wish you the best of luck in working with MongoDB on future projects!

Section 10: Appendix
Recovering MongoDB in Cloud9

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Stone River eLearning, 220,000+ Happy Udemy Students

At Stone River eLearning, technology is all we teach. If you're interested in programming, development or design - we have it covered. 

Check out our huge catalog of courses and join the over 370,000 students currently taking Stone River eLearning courses. We currently offer 100+ different technology training courses on our Stone River eLearning website and are adding new courses on hot and trending topics every month. A subscription option is available for those with a real passion for learning.

Ready to start learning?
Take This Course