📜  样板节点 js 服务器 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:28.983000             🧑  作者: Mango

代码示例1
// require packages used in the project
const express = require('express')
const app = express()
const port = 3000

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

// start and listen on the Express server
app.listen(port, () => {
  console.log(`Express is listening on localhost:${port}`)
})