Skip to content

Instantly share code, notes, and snippets.

@cristianciofu
Created January 17, 2016 09:27
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 cristianciofu/34bed6ca84104c13d00a to your computer and use it in GitHub Desktop.
Save cristianciofu/34bed6ca84104c13d00a to your computer and use it in GitHub Desktop.
Express quick server
var express = require("express");
var app = express();
app
.use(express.static('./'))
.get('*', function(req, res) {
res.sendFile(__dirname + '/index.html');
})
.listen(3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment