mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
13 lines
222 B
JavaScript
13 lines
222 B
JavaScript
import express from 'express'
|
|
|
|
const app = express()
|
|
const port = 3000
|
|
|
|
app.get('/', (req, res) => {
|
|
res.send('Hello World!')
|
|
})
|
|
|
|
app.listen(port, () => {
|
|
console.log(`Server listening at http://localhost:${port}`)
|
|
})
|