𝗗𝗮𝘆 𝟯𝟰 𝗼𝗳 𝗟𝗲𝗮𝗿𝗻𝗶𝗻𝗴 𝗠𝗘𝗥𝗡 𝗦𝘁𝗮𝗰𝗸
I am on day 34 of my journey to become a MERN stack developer.
Today I moved from frontend layouts to server side engineering. I am following the Node.js and Express masterclass by Prashant Sir.
Server side coding is different from frontend work. You no longer use window or document objects.
Here is what I learned today:
Project Initialization I started every project with npm init -y. This creates a package.json file. This file tracks my dependencies and configurations.
Module Systems I learned how to organize code using CommonJS. I used module.exports to share logic between files. This keeps the codebase clean and organized.
Using modules prevents code from becoming messy. It allows different parts of the backend to communicate without errors.
I am building a strong foundation for scalable backend applications.
Source: https://dev.to/ali_hamza_589ec7b3eb6688d/day-34-of-learning-mern-stack-5cep