Skip to content

Commit

Permalink
Exercise 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Iggy-Codes committed Feb 22, 2017
1 parent 0340f5e commit f1a092b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
9 changes: 9 additions & 0 deletions exercise3.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const express = require('express')
const app = express()

app.set('view engine', 'pug')
app.set('views', process.argv[3])

app.get('/home', (req, res) => res.render('index', {date: new Date().toDateString()}))

app.listen(process.argv[2])
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"homepage": "https://github.com/Iggy-Codes/expressworks-nodeschool#readme",
"dependencies": {
"express": "^4.14.1"
"express": "^4.14.1",
"pug": "^2.0.0-beta11"
}
}
9 changes: 0 additions & 9 deletions public/index.html

This file was deleted.

1 change: 0 additions & 1 deletion public/main.css

This file was deleted.

0 comments on commit f1a092b

Please sign in to comment.