JavaScript を用いて,Web サーバのプログラムを動かしてみる.
Node.js Windows 版のインストールは, 別ページ »で説明
https://github.com/lgraubner/sitemap-generatorに記載の手順に従う.
コマンドプロンプトを管理者として実行: 別ページ »で説明
npm install -S http
var http = require('http'); var handleRequest = function(request, response) { console.log('Received request for URL: ' + request.url); response.writeHead(200); response.end('Hello World!'); }; var www = http.createServer(handleRequest); www.listen(8080);