mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-22 09:37:45 +01:00
8472f27ec5
GitOrigin-RevId: ddf02e70d2827c048db49b687ebbcdcc67807ca6
12 lines
376 B
JavaScript
12 lines
376 B
JavaScript
const config = require('./{config_path}')
|
|
const express = require('express')
|
|
const app = express()
|
|
|
|
app.use(express.static('{static_path}'))
|
|
app.get('/', (req, res) => {
|
|
res.sendFile('./index.html', { root: '{static_path}' })
|
|
})
|
|
app.listen(config.application.port, config.application.host, () => {
|
|
console.log(`Server is listening on port: ${config.application.port}`)
|
|
})
|