Skip to content

Instantly share code, notes, and snippets.

@fyx99
Last active April 12, 2023 19:45
Show Gist options
  • Save fyx99/4a034a6bd7454fabec74d8c70dbd0bb2 to your computer and use it in GitHub Desktop.
Save fyx99/4a034a6bd7454fabec74d8c70dbd0bb2 to your computer and use it in GitHub Desktop.
Node.Js Example HTTP Server
const express = require('express')
const app = express()
const port = 3333
app.get('/', (req, res) => {
res.send('Hello World!')
})
app.listen(port, () => {
console.log(`Example app listening on port ${port}`)
})
// run this server with
// node app-http.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment