filesharing/server.js
2022-08-25 14:34:16 +08:00

11 lines
273 B
JavaScript

const express = require('express')
const app = express()
app.get('/', (req, res) => {
res.end('hello, world!')
})
const host = 'localhost'
const port = 3000
const server = app.listen(port, host, () => {
console.log(`server is running at http://${host}:${port}`)
})