mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-07 19:10:12 +08:00
feat: new analytics package, setup template
This commit is contained in:
1 parent
bd3d463280
commit
fb687094ee
7 files changed
+224
-11
No files matched your search
@@ -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')
|
||||
})
|
||||
Reference in new issue
Block a user