From 6dea88b432a40ee89b2133a4f8781f317b7eaaeb Mon Sep 17 00:00:00 2001 From: Nick Overdorff Date: Thu, 8 Oct 2020 20:33:32 -0400 Subject: [PATCH] Adds test input and basic express server --- JS/index.js | 14 +++++++++++++- JS/testinput.json | 16 ++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 JS/testinput.json diff --git a/JS/index.js b/JS/index.js index 6128532..237b998 100644 --- a/JS/index.js +++ b/JS/index.js @@ -1,2 +1,14 @@ -console.log('Hello From Node.js'); +const express = require('express' 4.17.1'); +const app = express(); +const port = 3000; + + +app.get('/', (req, res) => { + res.send('Hello World!'); +}); + + +app.listen(port, () => { + console.log('Listening at http://localhost:${port}'); +}); diff --git a/JS/testinput.json b/JS/testinput.json new file mode 100644 index 0000000..246dac2 --- /dev/null +++ b/JS/testinput.json @@ -0,0 +1,16 @@ +[ + { + "serialnum": "1000", + "make": "Optiplex 7020", + "OS": "Windows 10", + "Price": "$200", + "specs": [ + "Intel 3rd Generation i5 3470", + "3.4GHz Quad Core, Quad Thread Processor", + "8GB RAM", + "1TB Hard Drive" + ] + } +] + +