Ivan Chavero
2019-07-15 4463a8bae21fcee87956494abc3f8b02ff4dab67
ch04s09 Add build-app project for lab
2 files added
25 ■■■■■ changed files
build-app/app.js 11 ●●●●● patch | view | raw | blame | history
build-app/package.json 14 ●●●●● patch | view | raw | blame | history
build-app/app.js
New file
@@ -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!');
});
build-app/package.json
New file
@@ -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"
  }
}