node-hello / index.js
rahgadda's picture
Initial Draft
9e72f1e
raw
history blame contribute delete
No virus
284 Bytes
var express = require('express');
// Constants
var DEFAULT_PORT = 7860;
var PORT = process.env.PORT || DEFAULT_PORT;
// App
var app = express();
app.get('/', function (req, res) {
res.send('Hello World\n');
});
app.listen(PORT)
console.log('Running on http://localhost:' + PORT);