Skip to content

Instantly share code, notes, and snippets.

@abdul-hafizh
Last active March 28, 2017 02:31
Show Gist options
  • Save abdul-hafizh/a0c1f969bfebcd279358ddbb64cf2c73 to your computer and use it in GitHub Desktop.
Save abdul-hafizh/a0c1f969bfebcd279358ddbb64cf2c73 to your computer and use it in GitHub Desktop.
This script just for beginner how to show hello world.
var express = require('express');
var app = express();
app.get('/', function (req, res) {
res.send('Hello World!');
});
var server = app.listen(3000, function () {
var host = server.address().address;
var port = server.address().port;
console.log('Example app listening at http://%s:%s', host, port);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment