Journey liberal JSON-only HTTP request routing for node. createServer 基本的なサーバを作る。 /** * server.js */ var http = require('http'); http.createServer(function(req, res) { req.on('end', function() { res.writeHead(200, { 'Content-Type': 'text/plain' }); res.end('welcome'); }); }).listen(3000); console.log('Server running at http://127.0.0.1:3000'); http-consoleで確認。 % http-console http://localhost:3000