-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Iain Majer
authored and
Iain Majer
committed
Jul 4, 2017
1 parent
7d36492
commit 2edf115
Showing
4 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
html | ||
head | ||
title= title | ||
body | ||
h1= message |