mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 14:01:56 +08:00
12 lines
306 B
JavaScript
12 lines
306 B
JavaScript
const express = require('express')
|
|
const app = express()
|
|
const portNumber = 3000
|
|
const sourceDir = 'dist'
|
|
|
|
app.use(express.static(sourceDir))
|
|
|
|
app.listen(portNumber, () => {
|
|
console.log(`Express web server started: http://localhost:${portNumber}`)
|
|
console.log(`Serving content from /${sourceDir}/`)
|
|
})
|