Skip to content

Instantly share code, notes, and snippets.

Last active July 6, 2020 05:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
// super simple express server
'use strict'
const http = require(`http`);
const port = 8080;
const server = http.createServer((req, res) => {
res.end(`Hello, World!`);
server.listen(port, (err) => {
if (err) return console.log(`Something bad happened: ${err}`);
console.log(`Node.js server listening on ${port}`);
Copy link

keif commented Jul 6, 2020

I just needed a super simple express server showcasing GET/POST with ngrok for an arc.js application

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment