You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
358 B
11 lines
358 B
const express = require('express')
|
|
const path = require('path')
|
|
const PORT = process.env.PORT || 5000
|
|
|
|
express()
|
|
.use(express.static(path.join(__dirname, 'public')))
|
|
.set('views', path.join(__dirname, 'views'))
|
|
.set('view engine', 'ejs')
|
|
.get('/', (req, res) => res.render('pages/index'))
|
|
.listen(PORT, () => console.log(`Listening on ${ PORT }`))
|