Skip to content

Commit

Permalink
initial commit, hello world
Browse files Browse the repository at this point in the history
  • Loading branch information
Iain Majer authored and Iain Majer committed Jul 4, 2017
1 parent 7d36492 commit 2edf115
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

node_modules/
12 changes: 12 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
var express = require('express')
var app = express()

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

app.get('/', function (req, res) {
res.render('index', { title: 'Hey', message: 'Hello there!' })
})

app.listen(80, function () {
console.log('Example app listening on port 80')
})
22 changes: 22 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "portfolio",
"version": "1.0.0",
"description": "A portfolio website",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "github.com/IainVM/portfolio"
},
"keywords": [
"website"
],
"author": "Iain Majer",
"license": "ISC",
"dependencies": {
"express": "^4.15.3",
"pug": "^2.0.0-rc.2"
}
}
5 changes: 5 additions & 0 deletions views/index.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
html
head
title= title
body
h1= message

0 comments on commit 2edf115

Please sign in to comment.