Created
November 23, 2014 15:32
-
-
Save r0mdau/06869586b3cb493d38b0 to your computer and use it in GitHub Desktop.
Node.js simple server
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
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