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" + ] + } +] + +