9 lines
275 B
JavaScript
9 lines
275 B
JavaScript
const express = require('express')
|
|
const path = require('path')
|
|
const PORT = process.env.PORT || 1234
|
|
|
|
express()
|
|
.use(express.static(path.join(__dirname,'public')))
|
|
.get('/', (req, res) => res.render('index'))
|
|
.listen(PORT, () => console.log(`Listening on ${ PORT }`))
|