Skip to content

Instantly share code, notes, and snippets.

@guydumais
Last active March 6, 2021 14:54
Show Gist options
  • Save guydumais/6ee8e53759abe9fecd798b4e6a05c6cb to your computer and use it in GitHub Desktop.
Save guydumais/6ee8e53759abe9fecd798b4e6a05c6cb to your computer and use it in GitHub Desktop.
Express HTTP Server
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 listening at http://localhost:${port}`))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment