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

推荐订阅源

有赞技术团队
有赞技术团队
G
Google Developers Blog
T
Tailwind CSS Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
J
Java Code Geeks
P
Proofpoint News Feed
V
Visual Studio Blog
爱范儿
爱范儿
The Cloudflare Blog
博客园 - 叶小钗
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
M
MIT News - Artificial intelligence
Microsoft Security Blog
Microsoft Security Blog
博客园 - 聂微东
H
Help Net Security
B
Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 【当耐特】
量子位
宝玉的分享
宝玉的分享
WordPress大学
WordPress大学
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

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
FSD - Day 1
Samundishwar · 2026-05-09 · via DEV Community

STEP 1: Install Node.js (to run React)

STEP 2: Check the versions in CMD

(Learnt how to create documents in Dev.to)

STEP 3: Install the Vite package in CMD

-> npm install -g create-vite
-> npm create vite@latest my-react-app -- --template react

After that, give enter(Yes)

STEP 4: Give Ctrl+Click to view the page in the browser.

STEP 5: Open the created application in VS Code

-> package.json must be there, or the application will not run
-> App.jsx - have to edit code anytime inside here.

    <div>
      <h1>Get started</h1>
      <p>
        **Edit <code>src/App.jsx</code> and save to test <code>HMR</code>**
      </p>
    </div>

Enter fullscreen mode Exit fullscreen mode

-> If we have to change the colour or anything in styling, we can change in App.css or index.css.
-> Run file in terminal using 'npm run dev' command.

STEP 6: Edited the file App.jsx to create a table in the react web page.

THE CODE :

  <h1>Student Details</h1>

  <table>
    <tbody>
      <tr>
        <th>Name</th>
        <td>Samundishwari</td>
      </tr>

      <tr>
        <th>Department</th>
        <td>AI &amp; Data Science</td>
      </tr>

      <tr>
        <th>Favorite Color</th>
        <td>Blue</td>
      </tr>
    </tbody>
  </table>

Enter fullscreen mode Exit fullscreen mode

STEP 7: Install MongoDB Compass

STEP 8: Create a server file(JavaScript code) in a new directory - server.js in VS Code - Paste the code retrieved from online clipboard

-> Use of server : Connect Frontend(seating) and DB(Kitchen)
-> client(FE) - chef(DB) - waiter (API's)
-> hostname = IP address
-> statusCode = 200 (if Error)
-> Header - Cyber Sec. Important feature (used to check the connections or network)

THE CODE :

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 World');
});

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

Then run the command
-> node .\server.js
and see the result

STEP 9: Create a calculator.js file and run the page on port 3001.

STEP 10: NOTE : (console.log - like a print statement - in JS)
-> Create a directory
-> Open that in CMD
-> Run the command - npm init (A package will be created inside that folder)
-> and install Express
-> Create App.js file and write the code:

THE CODE :

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

// Home route
app.get('/', (req, res) => {
res.send('Welcome to my server!')
})

// Name route
app.get('/name', (req, res) => {
res.send('Samundishwari')
})

// Department route
app.get('/department', (req, res) => {
res.send('B.Tech AI & DS')
})

// Favorite color route
app.get('/favcolor', (req, res) => {
res.send('Black')
})

// Favorite food route
app.get('/favfood', (req, res) => {
res.send('Biriyani')
})

// College route
app.get('/college', (req, res) => {
res.send('Nandha Engineering College')
})

// Start server
app.listen(port, () => {
console.log(Example app listening on port ${port})
})

STEP 11: Use MongoDB Atlas online

-> Go to clusters
-> Proceed with the asked information and click "create deployment"
-> Cluster created!

STEP 12: Go to the Database and Network access side and add a user.

STEP 13: Now go to the IP address and see if there is already an IP. If not, create one with your IP.

STEP 14: Now, go to MongoDB Compass and Give add new Connection and paste the link you copied from Atlas.

STEP 15: After the DB was created, create a DB inside that and create a Collection.

STEP 16: After creation, we can do coding in the MongoDB_Shell

-> Performed CRUD Operations :
-> 1. CREATE :

  db["23ai054"].insertOne(
  {
     Name : "Samu",
     Age : 20,
     Department : "B. Tech AI&DS"
  })

Enter fullscreen mode Exit fullscreen mode

-> 2. To view, READ :

  db["23ai054"].find()

Enter fullscreen mode Exit fullscreen mode

-> 3. UPDATE :

  db["23ai054"].updateOne(
     { Name : "Samu"},
     { $set: {Age: 21}}
  )

Enter fullscreen mode Exit fullscreen mode

-> 4. DELETE :

  db["23ai054"].deleteOne(
  {
      " _id": ObjectID("xxxxxxxxxxxxxxxxxxxx")
  })

Enter fullscreen mode Exit fullscreen mode

STEP 17: Finally, pushed the project folders into the GitHub repository.