Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Brian Tuju briantuju

🏠
Working from home
Block or report user

Report or block briantuju

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@briantuju
briantuju / httpServer.js
Created Dec 8, 2019
A basic http server
View httpServer.js
// Simple http server using NodeJS
const http = require("http")
const host = "127.0.0.1"
const PORT = 3000
const server = http.createServer((req, res) => {
res.statusCode = 200
res.setHeader("Content-Type", "text/plain")
res.end("Holla, Amigos!")
You can’t perform that action at this time.