一个简单的服务

const express = require('express');
const app = express();

const port = process.env.PORT || 3000;

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

app.listen(port, () => {
  console.log(`Express web app available at http://localhost:${port}`);
});

posted @ 2022-08-19 12:37  敲代码的渊  阅读(21)  评论(0)    收藏  举报