惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
Y
Y Combinator Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
IT之家
IT之家
量子位
小众软件
小众软件
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
罗磊的独立博客
S
SegmentFault 最新的问题
博客园_首页
N
Netflix TechBlog - Medium
月光博客
月光博客
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
aimingoo的专栏
aimingoo的专栏
T
Tailwind CSS Blog
M
MIT News - Artificial intelligence
A
About on SuperTechFans
The Cloudflare Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
腾讯CDC
MyScale Blog
MyScale Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
MERN Stack Development – Day 1 🚀
Monika B R · 2026-05-08 · via DEV Community

Today was my first practical session in MERN Stack Development. It was an exciting learning experience where I explored both theoretical and practical concepts used in real-world web development.

Step 1 – Creating Developer Accounts

In today’s session, we created accounts on platforms commonly used by full stack developers.

GitHub

GitHub is used to store, manage, and share source code online.

Vercel

Vercel is used for deploying frontend applications like React projects.

Render

Render helps in deploying backend applications such as Node.js and Express servers.

MongoDB Atlas

MongoDB Atlas is a cloud-based database service used to store application data online.

DEV Community

DEV Community is a platform where developers share technical blogs and learning experiences.

Step 2 – Introduction to MERN Stack

We learned the meaning of MERN Stack:

  • MongoDB – Database
  • Express.js – Backend Framework
  • React.js – Frontend Library
  • Node.js – Runtime Environment

This helped me understand how frontend, backend, and database technologies work together in full stack development.

1. React (The Face)

React is a Frontend Library. Its only job is to handle what the user sees on their screen.

Analogy: It is like the menu and the table in a restaurant.

Use:You use it to build buttons, forms, and the layout of your website.

2. Node.js (The Engine)

Node.js is a Runtime Environment. It allows JavaScript to run on your computer/server instead of just inside a web browser.

Analogy:It is the electricity and kitchen equipment that allows the restaurant to function.

Use:It provides the environment where your backend code lives.

3. Express.js (The Waiter)

Express is a Backend Framework that runs on top of Node.js. It handles "Requests" and "Responses."

Analogy:It is the waiter. When a user clicks a button (Order), Express takes that request to the kitchen (Server/Database) and brings the data back to the user.

Use:You use it to create APIs (routes like /login or /get-data).

4. MongoDB Atlas (The Warehouse)

Atlas is a Cloud Database. It is a place on the internet where your data is stored permanently.

Analogy: It is the storage room where all the ingredients (data) are kept.

Use: It stores user profiles, passwords, and project details so they don't disappear when you refresh the page.

5. MongoDB Compass (The Window)

Compass is a GUI (Graphical User Interface). It is a tool installed on your laptop that lets you "look into" your database without writing code.

Analogy:It is like an X-ray or a window into the storage room.

Use:You use it to manually check if your data was saved correctly, or to delete/edit a piece of data quickly using your mouse.

How they work together:

  • User clicks a button in React.
  • Express (running on Node) hears the click and asks MongoDB Atlas for data.
  • Atlas sends the data back to Express.
  • Express gives it to React to show on the screen.
  • You use Compass to make sure the data in Atlas looks correct. Here is the simplest code example for each part of the stack. This follows the structure you need for your project.

1. React (The Frontend)

In your App.jsx, this code creates a simple heading and a button.

`import './App.css'

export default function App() {
return (


Hello from React!

This is my first MERN project.

alert('Button Clicked!')}>Click Me

)
}`

2. Express & Node (The Backend Server)

Create a file named express.js. This code creates a server that sends a message when you visit it in your browser.

`const express = require('express');
const app = express();
const port = 3000;

// This is a "Route"
app.get('/', (req, res) => {
res.send('Welcome Learners');
});

app.listen(port, () => {
console.log(Server is live at http://localhost:${port});
});`

3. Node

Create a file named server.js.

`const { createServer } = require('node:http');

const hostname = '127.0.0.1';
const port = 3000;

const server = createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello Monika 23AI040');
});

server.listen(port, hostname, () => {
console.log(Server running at http://${hostname}:${port}/);
});`

4. MongoDB Atlas & Compass

These do not use "code" in the traditional sense, but here is what you do with them:

MongoDB Atlas: You go to the website, click Connect, and copy the Connection String (like the dbURI shown above).

MongoDB Compass: Open the app on your computer and paste that same dbURI string into the box to see your data tables.

  • CRUD operations are the basic functions used in databases to manage data. CRUD stands for Create, Read, Update, and Delete.
  • Create is used to add new data into the database, Read is used to view or retrieve existing data, Update is used to modify the existing data, and Delete is used to remove data from the database.
  • In MongoDB, CRUD operations are performed using commands like insertOne(), find(), updateOne(), and deleteOne().
  • These operations help users efficiently store and manage information in a NoSQL database system.

5. Git Commands (Saving your work)

Run these in your terminal to save all the code above to your GitHub.

  • git init
  • git add .
  • git commit -m "FSD"
  • git branch -M main
  • git remote add origin
  • git push -u origin main

Day 1 of MERN Stack Development was very informative and practical. Learning how frontend, backend, database, and deployment platforms work together was exciting.

As a student programmer, this session motivated me to build more projects and improve my full stack development skills step by step.

Looking forward to learning APIs, routing, authentication, and full deployment in upcoming sessions.