feat: new analytics package, setup template

This commit is contained in:
wancat committed 2023-10-14 16:03:44 +08:00
1 parent bd3d463280
commit fb687094ee
7 files changed
+224 -11

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import express from 'express'
import { engine } from 'express-handlebars'
const app = express()
// Setting up Handlebars as templating engine
app.engine('handlebars', engine())
app.set('view engine', 'handlebars')
app.set('views', './views')
app.get('/', (req, res) => {
res.render('home', { title: 'Linux Odyssey Admin' })
})
app.listen(3001, () => {
console.log('Server started on http://localhost:3001')
})