Created
August 12, 2014 15:59
-
-
Save hiun/bf84b3792a9e5f0601c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Copy this code to specific folder | |
//Name the file to app.js | |
//Run fillowing command to install dependent modules and run application | |
//npm install express && node app.js | |
var express = require('express'); | |
var app = express(); | |
app.get('/', function (req, res) { | |
res.send('hello, world!') | |
}); | |
var port = 9999; | |
app.listen(port, function () { | |
console.log('magic happen @ port') | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment