Share your knowledge with other learners . . . Login Register

what is expressJS ? ExpressJS kya hai

📔 : ExpressJS 🔗

ExpressJS एक Node.js web application framework है जो हमें required interface, tools ready to use functionality provide कराता है। इसके साथ ही यह web और mobile application develop करने के लिए robust set of features भी provide कराता है।


ExpressJS fast, flexible , robust और asynchronous framework जो server और routes को manage करने में help करता है। इसे TJ Holowaychuk द्वारा develop किया गया था और Node.js foundation और अलग अलग open source contributors द्वारा manage किया जाता है।

Advantages of ExpressJS

  • Fast I/O

  • Asynchronous behavior और single threaded

  • MVC की तरह structure , मतलब हम चाहे तो MVC (Model , View , Controller) structure में application develop कर सकते हैं।

  • Easy routing

  • इसकी help से हम single-page, multi-page और hybrid web applications develop कर सकते हैं।

  • Easy request handling process

Simple example

CopyFullscreenClose Fullscreen
// import express module.
const express = require('express');  
const app = express();  
const port = 8000;

// define route
app.get('/', function (req, res) {  
  res.send('Welcome to learnhindituts.com');  
});  

//listen server. 
app.listen(port, function () {  
  console.log(`Server is running at http://localhost:${port}`);  
});

Related Topics :

Rahul Kumar

Rahul Kumar

Hi ! My name is Rahul Kumar Rajput. I'm a back end web developer and founder of learnhindituts.com. I live in Uttar Pradesh (UP), India and I love to talk about programming as well as writing technical tutorials and tips that can help to others.

Get connected with me. :) LinkedIn Twitter Instagram Facebook

b2eprogrammers