初始化express

This commit is contained in:
aixianling
2022-03-29 10:45:14 +08:00
parent afb81d8649
commit 0905e9263c
3 changed files with 34 additions and 0 deletions

11
demo.js Normal file
View File

@@ -0,0 +1,11 @@
const express = require('express')
const app = express()
const port = 3000
app.get('/', (req, res) => {
res.send('Hello World!')
})
app.listen(port, () => {
console.log(`Example app listening on port ${port}`)
})