Skip to content

Instantly share code, notes, and snippets.

@barhoring
Created June 5, 2020 09: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 barhoring/76d83293416eaa451146012cddab870e to your computer and use it in GitHub Desktop.
Save barhoring/76d83293416eaa451146012cddab870e to your computer and use it in GitHub Desktop.
Simple express Hello World example
const express = require("express");
const app = express();
const port = 3000;
app.get("/", (req, res) => res.send("Hello World"));
app.listen(port, () =>
console.log(`Example app is listening on http://localhost:${port}`)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment