nodejs express application

From WebHostingNeeds.com
Jump to: navigation, search

Install express.js

npm install express

Create app.js

var express = require('express');
var app = express();

app.get('/', function(req, res) {
    res.send("Hello from express");
});

app.listen(3000, function() {
    console.log("Application listening on port 3000");
});



nodejs