Home / MERN Beginner
MERN Beginner
MERN from a first document to a finished notes app: MongoDB and Mongoose, an Express REST API, a React frontend, auth and deploying. Every example verified against real MongoDB, Express and React.
MERN builds a whole web app from one language. MongoDB stores the data, Express answers requests, React builds the pages, and Node.js runs the server. This course teaches the four parts together, from a first document to a finished notes app. Fifty short lessons carry the reader from setup to deploying.
Course contents
Work top to bottom — the sidebar is the course. Topics later in the list assume the ones before them.
Getting Started
- MERN Introduction
- Setting Up a MERN Project
- The Four Parts of MERN
- Running the Dev Servers
- The Notes App We Will Build
MongoDB Basics
Start: What Is MongoDB ❯Mongoose Models
Start: Schema Types ❯Querying MongoDB
Start: Finding with Filters ❯Express API Basics
- Express in One Lesson
- GET Routes for Notes
- POST Routes and JSON Bodies
- Route Parameters for One Note
- Status Codes and Errors
REST API Design
- REST in One Page
- The Notes API: List and Create
- The Notes API: Getting One Note
- The Notes API: Updating and Deleting
- Testing the API
Connecting Frontend to API
Start: Fetching Data from React ❯React Notes List
- Listing Notes in React
- Adding a Note from a Form
- Deleting a Note
- Editing a Note
- Refreshing After a Change
Full-Stack Flow
Start: The Request Journey ❯Auth Basics
Start: Password Hashing ❯Deploying
Start: Preparing for Production ❯Capstone: A Full-Stack Notes App
Beginner · ⏱ 5 min · standalone lesson
Learn the MERN Stack
MERN is four tools that fit together. MongoDB holds the notes as documents. Express turns those documents into answers for HTTP requests. React turns the answers into pages. Node.js runs the Express server and the build tools. One language, JavaScript, runs every part.
The course moves in the order a real app is built. MongoDB and Mongoose come first, with schemas, saving, reading, and queries. An Express API follows, with routes, status codes, and a REST design. React joins next, fetching the list and adding forms for new notes. Auth and deploying close the course, and the capstone joins every part into one working app.
Eleven groups hold fifty lessons, and the capstone stands apart as its own entry. Every closing example is a complete program, run for real against MongoDB 8.2.6, Express 5.3.0, and React 19.3.1. Each page shows the output that run produced. A MongoDB example prints only chosen fields, never a whole document, so every printed line stays the same on each run.
What you will learn
Sixteen skills, in the order the course teaches them:
- Set up a MERN project with two dev servers
- Store notes as documents in MongoDB
- Connect with Mongoose and define a first schema
- Save, read, update, and delete documents
- Filter, sort, and limit query results
- Build GET and POST routes with Express
- Answer with the right status code for each outcome
- Shape a REST API for listing, reading, and changing notes
- Test the API route by route
- Fetch data from React and show a loading state
- Keep the API address in one constant
- List, add, delete, and edit notes in React
- Refresh the list after every change
- Hash passwords and check login tokens
- Guard routes behind a token check
- Deploy the API and the frontend, then finish the capstone
Who this MERN course is for
No MongoDB knowledge is needed. The opening lessons explain a document before any schema shows up. Each new term gets its meaning where it first appears. JavaScript carries the course: variables, functions, objects, arrays, and arrow functions. Readers who want that JavaScript first should take the JavaScript Beginner course.
The whole course runs four hours and ten minutes. MongoDB and the API take the longest for most readers. Take those groups slowly. Reading them twice pays off.
People heading for full-stack work start gently here, before bigger frameworks arrive. Hobbyists with a small notes app in mind get the grounding a MERN app asks for. Readers who know plain JavaScript see the same app rebuilt from a database, an API, and a frontend. Fixed pages turn into components, and direct data turns into requests that cross the stack.
How this course works
Every example ran for real against MongoDB 8.2.6, Express 5.3.0, and React 19.3.1. Each page prints the output that run produced. A MongoDB example prints only chosen fields, so no printed line carries an id that changes on each run. An interactive example prints its first render. The text beside it explains the click that follows.
Each lesson ends with a working program and one question. The lessons hold one fixed order. MongoDB comes before the API, because the API answers with documents. The API comes before React, because React shows what the API returns. Forms come after the list, because a form adds to a list that already renders. Progress stays in this browser alone. No account and no payment are needed.
Frequently asked questions
Do I need to know JavaScript first?
Yes, a little: variables, functions, objects, arrays, and arrow functions. Each MERN idea opens with its own definition. JavaScript itself stays outside this course. The JavaScript used here is taught in the JavaScript Beginner course.
Do I need MongoDB installed to follow the course?
No, for reading. The lessons show every result, so reading needs nothing installed. To run the database parts on your own machine, install MongoDB and use a local database named notes, as the second group shows.
What versions does the course use?
MongoDB 8.2.6 with Mongoose 9.12.1, Express 5.3.0, React 19.3.1, and Node.js v24.22.1. Every example ran for real on those versions. Each page prints the output its run actually gave.
Should I take the Node.js and React courses first?
It helps, but it is not required. The MERN course re-teaches what its own lessons need, and it points back to the Node.js and React courses where they teach the underlying pieces. Readers who already know Express routes and React state can move faster.
What will I have built by the end?
A full notes app: notes stored in MongoDB, served through an Express API, shown in a React list with forms, guarded by login, and deployed. The capstone joins the database, the API, and the frontend into one working app.
Next steps
- Node.js ❯ — Start with the server side: modules, npm, the event loop, files, HTTP and Express across 50 lessons.
- React ❯ — Build the frontend first: 50 lessons on components, JSX, props, state, Hooks and forms.
- JavaScript Intermediate ❯ — Go deeper in the language: 50 lessons on closures, prototypes, promises, async code and fetch.