Skip to content

Instantly share code, notes, and snippets.

@sarmadsaleem
Created September 8, 2020 10:22
Show Gist options
  • Save sarmadsaleem/3490c64a0c6d911be3e9f841b7e83881 to your computer and use it in GitHub Desktop.
Save sarmadsaleem/3490c64a0c6d911be3e9f841b7e83881 to your computer and use it in GitHub Desktop.
Scout APM - Sample node app
const http = require("http");
const hostname = "0.0.0.0";
const port = 3000;
const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader("Content-Type", "text/plain");
res.end("Hello World");
});
server.listen(port, hostname, () => {
console.log(`Server running at http://${hostname}:${port}/`);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment