filesharing/server.js

11 lines
273 B
JavaScript
Raw Normal View History

2022-08-25 06:34:16 +00:00
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}`)
})