Skip to content

Instantly share code, notes, and snippets.

@keif

keif/index.js

Last active Jul 6, 2020
Embed
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}`);
});
@keif

This comment has been minimized.

Copy link
Owner Author

@keif 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
You can’t perform that action at this time.