Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node express start code


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}`)
})
Source by expressjs.com #
 
PREVIOUS NEXT
Tagged: #node #express #start #code
ADD COMMENT
Topic
Name
8+7 =