Skip to content

Instantly share code, notes, and snippets.

@r0mdau
Created November 23, 2014 15:32
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 r0mdau/06869586b3cb493d38b0 to your computer and use it in GitHub Desktop.
Save r0mdau/06869586b3cb493d38b0 to your computer and use it in GitHub Desktop.
Node.js simple server
var express = require('express');
var app = express();
app
.get('/', function(req, res) {
res.sendFile(__dirname + '/index.html');
})
.use(express.static(__dirname, '.'))
.listen(8080);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment