From ff475c2954f3a2028d22c6de84524ee4c82b3446 Mon Sep 17 00:00:00 2001 From: jaeyoon25 <32021698+jaeyoon25@users.noreply.github.com> Date: Sat, 16 Sep 2017 15:33:02 -0400 Subject: [PATCH] added index.js --- index.js | 18 ++++++++++++++++++ package.json | 24 ++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 index.js create mode 100644 package.json 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..2ac3a38 --- /dev/null +++ b/package.json @@ -0,0 +1,24 @@ +{ + "name": "jaeyoon25", + "version": "6.11.3", + "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", + "dependencies": { + "express": "^4.15.4", + "express-remarkable": "^0.4.0" + }, + "devDependencies": {}, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/jaeyoon25/tutorial.git" + }, + "author": "", + "license": "ISC", + "bugs": { + "url": "https://github.com/jaeyoon25/tutorial/issues" + }, + "homepage": "https://github.com/jaeyoon25/tutorial#readme" +}