Created
October 4, 2014 15:57
-
-
Save shoveller/227bb001b00f55b87827 to your computer and use it in GitHub Desktop.
express.js 를 사용한 가장 간단한 서버
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
/** | |
* Created by cinos81 on 2014. 10. 4.. | |
*/ | |
var express = require('express'); | |
var app = express(); | |
app.get('/', function(req, res){ | |
res.sendfile('index.html'); | |
}); | |
app.listen(8080); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment