Day 1 of Learning MERN Stack Backend


My Journey with npm, Node.js & Express.js π
Hello, fellow coders! π
Today marks Day 1 of my MERN Stack backend learning journey and I want to share my progress, challenges, and some useful tips I picked up while diving into the world of Node.js and Express.js.
What I Learned Today
π¦ npm β The Package Manager You Must Know
npm (Node Package Manager) helps install, uninstall, and manage JavaScript packages effortlessly. Itβs like your projectβs accountant, keeping track of all your dependencies.
- To initialize a project: npm init -y
- To install a package: npm i <package-name>
- To uninstall: npm uninstall <package-name>
- You can also install specific versions!
Useful Link: npmjs.com
β‘ Node.js β The JavaScript Runtime Outside the Browser
Node.js lets us run JavaScript on the backend. Itβs powered by Chromeβs V8 engine, which converts JS code into machine code for super fast execution. Today I practiced reading files and creating folders using Nodeβs fs module.
π HTTP & HTTPS Protocols
These protocols set the rules for communication over the internet. Understanding these is crucial for backend development.
π Understanding node_modules & Dependencies
- Dependencies: Packages your app needs to run.
- DevDependencies: Packages only needed during development (like testing tools or build scripts).
π¦ Express.js β The Web Framework
Express.js is the manager of requests and responses. It makes backend development easier and faster.
- To install: npm i express
- I set up nodemon globally (npm i -g nodemon) to auto-refresh my server on code changes.
Useful Link: Express.js Official Site
Debugging Experiences & Solutions
I initially struggled with remembering the exact commands to install/uninstall packages but realized npmβs official docs are a lifesaver! Also, setting up nodemon helped me avoid restarting the server manually β a huge productivity boost.
Questions for the Community π€
- What are your favorite npm packages for MERN backend development?
- How do you handle versioning and devDependencies in your projects?
- Any tips on mastering Express.js quickly?
Final Thoughts
Starting the backend journey is both exciting and challenging. With tools like npm, Node.js, and Express, building scalable apps feels more achievable every day.
Iβll keep sharing daily updates, so stay tuned!
Hashtags
#MERNStack #NodeJS #ExpressJS #npm #BackendDevelopment #100DaysOfCode #JavaScript #WebDevelopment
Subscribe to my newsletter
Read articles from Priyanshu Bhatt directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Priyanshu Bhatt
Priyanshu Bhatt
π Hey there! I'm a final-year BCA student π¨βπ» diving deep into MERN Stack π | Python Django π | React βοΈ | Learning Java + DSA π‘ Passionate about building, breaking & learning every single day βοΈπ» Sharing my dev journey as a #CodeNewbie π¬