임에딘

add app.js

Showing 1 changed file with 9 additions and 0 deletions
1 +var http = require('http');
2 +var fs = require('fs');
3 +http.createServer(function (req, res) {
4 + fs.readFile('index.html', function(err, data) {
5 + res.writeHead(200, {'Content-Type': 'text/html'});
6 + res.write(data);
7 + res.end();
8 + });
9 +}).listen(8080);