Skip to content

Instantly share code, notes, and snippets.

@codewithpom
Created November 2, 2021 06:12
Show Gist options
  • Save codewithpom/01769a22d2ad5f6fe8c8855ef0f0f21c to your computer and use it in GitHub Desktop.
Save codewithpom/01769a22d2ad5f6fe8c8855ef0f0f21c to your computer and use it in GitHub Desktop.
// Sample express app
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