Answers for "js express server"

0

js express server

const http = require('http')
const express = require('express')

const app = express()
const server = http.Server(app)
app.set('port', 8888)
server.listen(8888)

app.get('/', (req, res) => {
  res.json({teste: true})
})
Posted by: Guest on January-30-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language