diff --git a/build-app/app.js b/build-app/app.js new file mode 100644 index 0000000..943ca38 --- /dev/null +++ b/build-app/app.js @@ -0,0 +1,11 @@ +var express = require('express'); +app = express(); + +app.get('/', function (req, res) { + res.send('Simple app for the Building Applications Lab!\n'); +}); + +app.listen(8080, function () { + console.log('Simple app for the Building Applications Lab!'); +}); + diff --git a/build-app/package.json b/build-app/package.json new file mode 100644 index 0000000..29b13f4 --- /dev/null +++ b/build-app/package.json @@ -0,0 +1,14 @@ +{ + "name": "nodejs-helloworld", + "version": "1.0.0", + "description": "Hello World!", + "main": "app.js", + "scripts": { + "start": "node app.js" + }, + "author": "Red Hat Training", + "license": "ASL", + "dependencies": { + "express": "4.14.x" + } +}