Fast, unopinionated, minimalist web framework for Node.js.
What is Express?
Express is a minimal and flexible Node.js web application framework.
It provides a robust set of features for web and mobile applications.
Why choose it?
APIs
A myriad of HTTP utility methods and middleware
Quick and easy to create a robust API
Performance
Provides a thin layer of fundamental web application features
Frameworks
Many popular frameworks are based on Express:
Feathers, KeystoneJS, LoopBack, MEA, Sails…
How to use it?
- Install Node.js
- Create project & Install express
$ npm install express –save
- Run
Create index.js, add the following code:
var express = require('express');
var app = express();
app.get('/', function (req, res) {
res.send('Hello World!');
});
app.listen(3000, function () {
console.log('Example app listening on port 3000!');
});
$ node index.js
Run the above command to start your app.