From 16860c7e16a1cdd9541aefa6a4b3432530f87dbc Mon Sep 17 00:00:00 2001 From: shuwenw <31805198+shuwenw@users.noreply.github.com> Date: Sat, 9 Sep 2017 15:46:14 -0400 Subject: [PATCH] tutorial --- .DS_Store | Bin 0 -> 8196 bytes index.js | 18 ++++++++++++++++++ package.json | 24 ++++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 .DS_Store create mode 100644 index.js create mode 100644 package.json diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..a12a4f5fa9578035a81b62ebe4b760b000d8ca93 GIT binary patch literal 8196 zcmeHLO>fjj7=9-S#2Zp@NJ0X%lEq%A5}`l?oKVb?08xdq%|;>HBy8>VWHZH?S=ruv z5JlQUPd&9ipqI9M-1q^NIG|SQfgeB*RewTzgj0CuBV?No^+Khh&TGv)uV>z8Jp0Vr zuwMb0 zyF0*uLj<%ne-C33Vjtd4i*#P3Ag8DZ%DZ~vrUrSh2ss~lZYjYW0&r0k8t+*%mgih1w-fq*(Mjd1N zb{o`iw-QRZ8gFW8DW%z5#XXT$6A{Nnk+O^lUT*0vFQmABlNnu^URkHAwa5Q%_{KkD)0uU-yJ~! literal 0 HcmV?d00001 diff --git a/index.js b/index.js new file mode 100644 index 0000000..9054565 --- /dev/null +++ b/index.js @@ -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') +}) \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..b9e8cc8 --- /dev/null +++ b/package.json @@ -0,0 +1,24 @@ +{ + "name": "tutorial", + "version": "1.0.0", + "description": "This readme will help you get accustomed to the tools that we use at scottylabs. Our applications primarily are built with nodejs and python, and we use git to collaborate together.", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/shuwenw/tutorial.git" + }, + "author": "", + "license": "ISC", + "bugs": { + "url": "https://github.com/shuwenw/tutorial/issues" + }, + "homepage": "https://github.com/shuwenw/tutorial#readme", + "dependencies": { + "express": "^4.15.4", + "express-remarkable": "^0.4.0", + "index.js": "0.0.3" + } +}