DEV Community

Cover image for Day 34 of Learning MERN Stack
Ali Hamza
Ali Hamza

Posted on

Day 34 of Learning MERN Stack

Hello Dev Community! 👋

It is officially Day 34 of my journey toward becoming a full-stack MERN developer! After building logic-heavy interactive layouts on the frontend, I have crossed the bridge into server-side engineering. I am officially tracking Prashant Sir's (Complete Coding) 24-Lecture Node.js & Express masterclass!

Today was all about building a bulletproof foundation—understanding module systems, parsing configurations, and handling local files directly from the terminal layer.


🧠 Key Backend Structural Learnings (Lectures 1 & 2 Focus)

When you write server code, you leave the window and document objects behind. Here is the architectural breakdown of what I mastered today:

1. Project Manifest Initialization

Every robust backend application starts with an identity blueprint. I initialized my project tracking manifest using npm init -y, generating a standardized package.json file to manage environmental configurations, external scripts, and dependencies safely.

2. Module Mechanics (require vs exports)

I practiced how backend layers talk to each other without creating code soup. I isolated business logic into distinct files and exported them using traditional CommonJS module patterns:


javascript
// Exporting logic chunks cleanly
module.exports = { myFunction, myVariable };
Enter fullscreen mode Exit fullscreen mode

Top comments (0)