Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions contacts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
"start": "if [[ $NODE_ENV == 'production' ]]; then node ./bin/www; else nodemon ./bin/www; fi"
},
"dependencies": {
"connect-flash": "0.1.1",
"cookie-parser": "1.4.5",
"debug": "4.3.2",
"dotenv": "10.0.0",
"express": "4.17.1",
"http-errors": "1.8.0",
"morgan": "1.10.0",
"pg": "8.6.0",
"pug": "3.0.2"
},
"connect-flash": "0.1.1",
"cookie-parser": "1.4.5",
"debug": "4.3.2",
"dotenv": "10.0.0",
"express": "4.17.1",
"http-errors": "1.8.0",
"morgan": "1.10.0",
"pg": "8.6.0",
"pug": "3.0.2"
},
"devDependencies": {
"nodemon": "2.0.12"
}
Expand Down
2 changes: 1 addition & 1 deletion express-helloworld/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var express = require('express');
app = express();

app.get('/', function (req, res) {
res.send('Hello World!\n');
res.send('Hello World!\n');;
});

app.listen(8080, function () {
Expand Down
2 changes: 1 addition & 1 deletion version/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var response;

app.get('/', function (req, res) {

response = 'This is version 1 of the app.' + '\n';
response = 'This is version 3 of the app.' + '\n';

//send the response to the client
res.send(response);
Expand Down
2 changes: 1 addition & 1 deletion weather/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var cookieParser = require('cookie-parser');
var logger = require('morgan');

var indexRouter = require('./routes/index');

app.use('/', indexRouter);
var app = express();

// view engine setup
Expand Down
19 changes: 10 additions & 9 deletions weather/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
"start": "node ./bin/www"
},
"dependencies": {
"cookie-parser": "1.4.5",
"debug": "4.3.2",
"dotenv": "10.0.0",
"express": "4.17.1",
"http-errors": "1.8.0",
"morgan": "1.10.0",
"node-fetch": "^2.6.1",
"pug": "3.0.2"
}
"cookie-parser": "1.4.5",
"debug": "4.3.2",
"dotenv": "10.0.0",
"express": "4.17.1",
"http-errors": "1.8.0",
"morgan": "1.10.0",
"node-fetch": "^2.6.1",
"package-json": "^7.0.0",
"pug": "3.0.2"
}
}