Skip to content

Instantly share code, notes, and snippets.

@sayar sayar/server.js
Created Mar 22, 2015

Embed
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');
}).listen(port);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.