Last active
July 6, 2020 05:02
-
-
Save keif/b7ccd29607a21af0689c52555549ed0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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}`); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just needed a super simple express server showcasing GET/POST with ngrok for an arc.js application