mirror of
https://github.com/hanzoai/insights-js.git
synced 2026-10-30 18:34:19 +00:00
17 lines
429 B
JavaScript
17 lines
429 B
JavaScript
const express = require('express')
|
|
const path = require('path')
|
|
const app = express()
|
|
const port = 3000
|
|
|
|
// Serve static files from the dist directory
|
|
app.use('/dist', express.static(path.join(__dirname, '../../dist')))
|
|
|
|
// Serve the demo.html file
|
|
app.get('/', (req, res) => {
|
|
res.sendFile(path.join(__dirname, 'demo.html'))
|
|
})
|
|
|
|
app.listen(port, () => {
|
|
console.log(`Demo server running at http://localhost:${port}`)
|
|
})
|