Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Brian Lee Tutorial.zip
Binary file not shown.
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')
})
19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "tutorial",
"version": "1.0.0",
"description": "This readme will help you get accustomed to the tools that we use at scottylabs.\r Our applications primarily are built with nodejs and python, and we use git\r to collaborate together.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/brianlee376/tutorial.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/brianlee376/tutorial/issues"
},
"homepage": "https://github.com/brianlee376/tutorial#readme"
}