initial commit with apps from course repo
This commit is contained in:
11
nodejs-helloworld/app.js
Normal file
11
nodejs-helloworld/app.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var express = require('express');
|
||||
app = express();
|
||||
|
||||
app.get('/', function (req, res) {
|
||||
res.send('Hello World!\n');
|
||||
});
|
||||
|
||||
app.listen(8080, function () {
|
||||
console.log('Example app listening on port 8080!');
|
||||
});
|
||||
|
||||
14
nodejs-helloworld/package.json
Normal file
14
nodejs-helloworld/package.json
Normal 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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user