Skip to content

Instantly share code, notes, and snippets.

Created Mar 22, 2015
What would you like to do?
Hands-on: Build a Node.js-powered chatroom web app | Part 1: Introduction to Node.js
var http = require('http');
var port = process.env.port || 1337;
http.createServer(function (req, res) {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('Hello World\n');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment