Stop forcing documents into rows and columns
A foundations-first NoSQL path — start with the document model, collections and CRUD, then move into querying, indexing and the aggregation pipeline that does the heavy lifting in real MongoDB applications, before going deep on transactions, replication, sharding and Atlas. All 10 weeks are live, ending in a full capstone API you deploy yourself.
Prerequisites & tooling
What you should already know
- Comfortable reading and writing basic JSON
- Some exposure to any programming language helps, but isn't required for Weeks 1–2
- No prior database or SQL experience required — this course doesn't assume it
- Pairs well with the Node.js & Express course, but stands entirely on its own
Stack you'll work with
The exact tools used to run MongoDB locally and query it, free and open-source.
The full 10-week roadmap
Ten modules, from the document model and CRUD through querying, indexing and the aggregation pipeline, to schema design, transactions, replication, sharding and Atlas — capped by a capstone API. Every week below is live.
MongoDB Fundamentals: Documents, Collections & CRUD
The document model, and the five operations that cover almost everything you'll do day to day.
- Documents, collections & databases — the model, not the table
insertOne/insertMany,find,updateOne/updateMany,deleteOne/deleteMany- The
_idfield,ObjectId& core BSON types
Querying, Indexing & the Aggregation Pipeline
Go from "I can read it back" to "I can ask it real questions, fast."
- Query operators (
$gt,$in,$and) & projections - Indexes — why queries get slow, and how
explain()proves it - A first aggregation pipeline:
$match,$group,$sort,$project
Schema Design & Data Modeling Patterns
MongoDB doesn't force a schema — that means the modeling decisions are entirely yours to get right.
- Embedding vs. referencing, and how to choose
- One-to-few, one-to-many & one-to-squillions patterns
- Schema validation with
$jsonSchema
Mongoose & the Node.js Driver
Talk to MongoDB from real application code, not just a shell.
- The native Node.js driver vs. Mongoose's schema layer
- Schemas, models, validation & middleware in Mongoose
- Wiring a CRUD API route to a MongoDB collection
Advanced Aggregation & Data Transformation
Push analysis into the database instead of pulling everything into application code.
$lookupfor joining across collections$unwind,$facet& multi-stage pipelines- Building a reporting pipeline against a real dataset
Transactions & ACID Guarantees in MongoDB
Yes, MongoDB has real multi-document transactions — here's when you actually need them.
- Single-document atomicity vs. multi-document transactions
- Sessions,
startTransaction/commitTransaction - When good schema design means you don't need a transaction at all
Replication & High Availability
Keep serving reads and writes even when a server goes down.
- Replica sets, primaries, secondaries & automatic failover
- Write concern & read preference, and the tradeoffs each makes
- Standing up a local 3-node replica set
Sharding & Horizontal Scaling
What happens when one replica set isn't enough anymore.
- Shard keys, chunks & the
mongosrouter - Choosing a shard key that doesn't create a hot shard
- When to reach for sharding — and when replication is still enough
MongoDB Atlas: Cloud Deployment & Monitoring
Run everything from this course on a managed cluster instead of your laptop.
- Spinning up a free-tier Atlas cluster & network access rules
- Atlas Search & built-in performance monitoring
- Backups, alerts & connecting a real app to Atlas
Capstone: Build a Full CRUD API Backed by MongoDB
Apply every module in one project — a real API, a real schema, a real Atlas cluster.
- A modeled schema with embedding/referencing decisions you can justify
- An aggregation-powered reporting endpoint
- Deployed to Atlas — portfolio-ready project you can show employers