Skip to content

Instantly share code, notes, and snippets.

@nghiahsgs
Created September 9, 2020 16:12
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 nghiahsgs/3faf7f091dfdea5180ce2e87791b3850 to your computer and use it in GitHub Desktop.
Save nghiahsgs/3faf7f091dfdea5180ce2e87791b3850 to your computer and use it in GitHub Desktop.
const express = require('express');
const app = express();
app.get('/', (req, res) => {
res.send("Hello World!");
});
const port = 3000;
const server = app.listen(port, () => {
console.log(`Listening on http://localhost:${port}`);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment