Skip to content

Instantly share code, notes, and snippets.

@nodirshox
Created November 23, 2020 16:17
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 nodirshox/55957e2029a44067738afdd9d2d49c2d to your computer and use it in GitHub Desktop.
Save nodirshox/55957e2029a44067738afdd9d2d49c2d to your computer and use it in GitHub Desktop.
Hello World in Node JS
const express = require('express')
const app = express()
app.get('/', function(req, res) {
res.send('Hello World!')
})
const port = 3000
app.listen(port, () => {
console.log('Server started on port', port)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment