Skip to content

Instantly share code, notes, and snippets.

@keif
Last active July 6, 2020 05:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keif/b7ccd29607a21af0689c52555549ed0e to your computer and use it in GitHub Desktop.
Save keif/b7ccd29607a21af0689c52555549ed0e to your computer and use it in GitHub Desktop.
// 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}`);
});
@keif
Copy link
Author

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