Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express

1)Express is minimal node.js framework,higher level of abstraction.
2)Express contains robust set of features:complex routing,easier handling of request
and responses,middleware,server-side rendering etc.
3)express allows application into the MVC architecture.

//index.js
const express = require('express');
const app = express();

app.get('/', (req, res) => {
  res.json({ msg: 'Hello from server' });
});

app.listen(4000, () => {
  console.log('Hello from server');
});
 
PREVIOUS NEXT
Tagged: #express
ADD COMMENT
Topic
Name
9+4 =