Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

express js serve html

const express = require('express')

const app = express()
app.use(express.static('public'))

app.listen(port, () => {
    console.log(`Server is up on port ${port}!`)
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #express #js #serve #html
ADD COMMENT
Topic
Name
8+4 =