Developers
mern
Notes tagged mern.
- tutorial17 min read
MongoDB modeling for MERN
MongoDB's flexible document model is powerful, but early schema decisions are hard to undo. This tutorial gives you the patterns you need from the start: when to embed vs. reference, how to write Mongoose schemas with proper validation and indexes, and how to avoid the anti-patterns that cause performance problems as data grows.
- tutorial17 min read
MERN deployment checklist
Deployment is where many MERN projects stall — not because it's hard, but because the order of operations isn't obvious. This checklist walks through every step: MongoDB Atlas for the database, Render for Express, Vercel for React, and the environment variable and CORS configuration that makes them trust each other.
- tutorial17 min read
MERN API design
Most Express APIs start working before they start making sense. This tutorial gives you the patterns that make an Express API maintainable as it grows: resource-based routing, the routes/controllers split, correct HTTP status codes, input validation, and consistent error shapes that React can rely on.
- tutorial17 min read
MERN auth basics
Authentication in a MERN app crosses all four layers at once — that's why it trips people up. This tutorial connects the dots: bcrypt handles password storage, JWTs handle the signed token, and Express middleware handles route protection. By the end you'll have working auth code you understand well enough to adapt and debug.
- tutorial17 min read
MERN stack architecture
The MERN stack is four technologies that click together remarkably well — but only once you understand where each layer starts and stops. This tutorial maps the full architecture from MongoDB through Express and Node.js to React, so you always know exactly where your code lives, why it lives there, and what to check when something breaks.