ch04s09 Add build-app project for lab
New file |
| | |
| | | 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!'); |
| | | }); |
| | | |
New file |
| | |
| | | { |
| | | "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" |
| | | } |
| | | } |