Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

set up node js server express

npm init -y
npm i express
______

const express = require('express')
const app = express()
const port = 5000

app.get('/', (req, res) => {
  res.send('Hello World!')
})

app.listen(port, () => {
  console.log(`Example app listening at http://localhost:${port}`)
})
 
PREVIOUS NEXT
Tagged: #set #node #js #server #express
ADD COMMENT
Topic
Name
4+3 =