Skip to content

Instantly share code, notes, and snippets.

@hiun
Created August 12, 2014 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiun/bf84b3792a9e5f0601c2 to your computer and use it in GitHub Desktop.
Save hiun/bf84b3792a9e5f0601c2 to your computer and use it in GitHub Desktop.
//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