Tech TutorBangla Web Documentation
Portfolio
HomeHTMLCSSTailwind CSSJavaScriptTypeScriptReactNext.jsNode.jsExpressSocket.IOExpoWordPressPostgreSQLPrismaPostgresNestJSMongoDBDockerTanStackTanStack TableRTK QueryGitGitHub
  • Express Documentation22টি অধ্যায়
প্রযুক্তি নির্বাচন
HomeHTMLCSSTailwind CSSJavaScriptTypeScriptReactNext.jsNode.jsExpressSocket.IOExpoWordPressPostgreSQLPrismaPostgresNestJSMongoDBDockerTanStackTanStack TableRTK QueryGitGitHub
  • Introduction
  • Installation
  • Routing
  • Middleware
  • Request & Response
  • Static Files
  • Router
  • Error Handling
  • Template Engines
  • Body Parsing
  • File Upload
  • CORS
  • Database
  • Validation
  • Authentication
  • Security
  • REST API
  • Performance
  • Testing
  • Best Practices
  • Project
  • Interview
  1. Docs
  2. Express
  3. Express Installation ও প্রথম Server
ExpressBeginner

Express Installation ও প্রথম Server

Express install, folder structure, প্রথম server — সম্পূর্ণ বাংলা গাইড।

15টি অংশবাংলা ভাষায়

Express শেখার শুরুতে এটি install করে প্রথম server চালু করা যাক।

প্রয়োজনীয় শর্ত

  • Node.js (v18 বা তার বেশি)
  • npm (Node-এর সাথে আসে)
  • Code editor (VS Code সুপারিশকৃত)

Project Setup

# project directory তৈরি
mkdir my-express-app
cd my-express-app

# package.json তৈরি
npm init -y

# express install
npm install express

# dev dependency (অটো-রিস্টার্টের জন্য)
npm install --save-dev nodemon
package.json scriptsjson
json
{
  "name": "my-express-app",
  "scripts": {
    "start": "node index.js",
    "dev": "nodemon index.js"
  }
}

প্রথম Express Server

index.jsjavascript
javascript
const express = require("express");
const app = express();
const PORT = process.env.PORT || 3000;

app.get("/", (req, res) => {
  res.send("Hello, Express!");
});

app.listen(PORT, () => {
  console.log("Server চালু: http://localhost:" + PORT);
});
npm run dev

# Output: Server চালু: http://localhost:3000

ব্রাউজারে http://localhost:3000 খুললে "Hello, Express!" দেখা যাবে। nodemon কোড পরিবর্তনের সাথে সাথে server অটো-রিস্টার্ট করে।

ES Modules ব্যবহার করা

using ESM (import)javascript
javascript
import express from "express";
const app = express();

// package.json-এ "type": "module" যোগ করুন */

app.get("/", (req, res) => res.send("ESM Mode!"));
app.listen(3000);

Recommended Folder Structure

my-express-app/
├── index.js            # entry point
├── package.json
├── .gitignore
├── public/            # static files (css, images)
├── views/             # template files (EJS, etc.)
├── routes/            # route handlers
├── middleware/        # custom middleware
├── models/            # database models
└── controllers/       # business logic
Version চেক

npm list express দিয়ে আপনার Express version দেখতে পারেন। Express 5-এখানে res.send ও routing কিছুটা ভিন্ন।

শেষ প্যারায় নিজে practice করুন — কোড কপি করে নিজের এডিটরে চালিয়ে দেখুন।
আগেরExpress.js IntroductionপরেরExpress Routing
এই পেজে
Tech Tutor

বাংলায় ওয়েব ডেভেলপমেন্ট ডকুমেন্টেশন শিখুন — ধাপে ধাপে।

Homeসব ডকুমেন্টেশনQuick Startআমার নোটস

© 2026 Tech Tutor. বাংলায় শিখুন, বাংলায় গড়ুন।

mdanamolhasan1998@gmail.com