06fb353f3bbb822ce66c75f6f257fc8a5efc5a85
Gitcub / index.js
const express = require('express')
const app = express()
const port = 3000

app.set('view engine', 'pug')
app.set('views', './views')

app.get('/', (req, res) => {
  res.render('index')
})

app.listen(port, () => {
  console.log(`Example app listening on port ${port}`)
}) 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15