Skip to content

Commit

Permalink
Keiffer's tutorial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
keiffer01 committed Sep 15, 2018
1 parent c402b67 commit 32eba19
Show file tree
Hide file tree
Showing 3 changed files with 494 additions and 0 deletions.
18 changes: 18 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
var express = require('express')
var remarkable = require('express-remarkable')
var app = express()

app.engine('md', remarkable(app));
app.set('views', '.');
app.set('view engine', 'md');

function sendWebpage(request, response) {
response.render('README');
}

app.get('/', sendWebpage)

app.listen('3000', () => {
console.log('server is now running');
console.log('go to http://localhost:3000 to see the output')
})
Loading

0 comments on commit 32eba19

Please sign in to comment.