From 4463a8bae21fcee87956494abc3f8b02ff4dab67 Mon Sep 17 00:00:00 2001 From: Ivan Chavero <ichavero@chavero.com.mx> Date: Mon, 15 Jul 2019 21:57:04 +0200 Subject: [PATCH] ch04s09 Add build-app project for lab --- build-app/app.js | 11 +++++++++++ build-app/package.json | 14 ++++++++++++++ 2 files changed, 25 insertions(+), 0 deletions(-) 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" + } +} -- Gitblit v1.9.3