Skip to content

Commit

Permalink
Update: codes
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroCho committed Apr 25, 2020
1 parent ffec4a4 commit 588754b
Show file tree
Hide file tree
Showing 36 changed files with 2,574 additions and 10,756 deletions.
3 changes: 1 addition & 2 deletions ch10/10.2/nodebird-api/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"password": "nodejsbook",
"database": "nodebird",
"host": "127.0.0.1",
"dialect": "mysql",
"operatorsAliases": false
"dialect": "mysql"
},
"test": {
"username": "root",
Expand Down
2,890 changes: 627 additions & 2,263 deletions ch10/10.2/nodebird-api/package-lock.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions ch10/10.2/nodebird-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@
"author": "Zero Cho",
"license": "ISC",
"dependencies": {
"bcrypt": "^3.0.7",
"cookie-parser": "^1.4.4",
"bcrypt": "^4.0.1",
"cookie-parser": "^1.4.5",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"express-session": "^1.17.0",
"morgan": "^1.9.1",
"express-session": "^1.17.1",
"morgan": "^1.10.0",
"mysql2": "^2.1.0",
"nunjucks": "^3.2.0",
"nunjucks": "^3.2.1",
"passport": "^0.4.1",
"passport-kakao": "1.0.0",
"passport-local": "^1.0.0",
"sequelize": "^5.21.3",
"uuid": "^3.3.3"
"sequelize": "^5.21.7",
"uuid": "^7.0.3"
},
"devDependencies": {
"nodemon": "^2.0.2"
"nodemon": "^2.0.3"
}
}
2 changes: 1 addition & 1 deletion ch10/10.2/nodebird-api/routes/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const express = require('express');
const uuidv4 = require('uuid/v4');
const { v4: uuidv4 } = require('uuid');
const { User, Domain } = require('../models');
const { isLoggedIn } = require('./middlewares');

Expand Down
3 changes: 1 addition & 2 deletions ch10/10.3/nodebird-api/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"password": "nodejsbook",
"database": "nodebird",
"host": "127.0.0.1",
"dialect": "mysql",
"operatorsAliases": false
"dialect": "mysql"
},
"test": {
"username": "root",
Expand Down
16 changes: 8 additions & 8 deletions ch10/10.3/nodebird-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@
"author": "Zero Cho",
"license": "ISC",
"dependencies": {
"bcrypt": "^3.0.7",
"cookie-parser": "^1.4.4",
"bcrypt": "^4.0.1",
"cookie-parser": "^1.4.5",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"express-session": "^1.17.0",
"express-session": "^1.17.1",
"jsonwebtoken": "^8.5.1",
"morgan": "^1.9.1",
"morgan": "^1.10.0",
"mysql2": "^2.1.0",
"nunjucks": "^3.2.1",
"passport": "^0.4.1",
"passport-kakao": "1.0.0",
"passport-local": "^1.0.0",
"nunjucks": "^3.2.0",
"sequelize": "^5.21.3",
"uuid": "^3.3.3"
"sequelize": "^5.21.7",
"uuid": "^7.0.3"
},
"devDependencies": {
"nodemon": "^2.0.2"
"nodemon": "^2.0.3"
}
}
2 changes: 1 addition & 1 deletion ch10/10.3/nodebird-api/routes/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const express = require('express');
const uuidv4 = require('uuid/v4');
const { v4: uuidv4 } = require('uuid');
const { User, Domain } = require('../models');

const router = express.Router();
Expand Down
3 changes: 1 addition & 2 deletions ch10/10.4/nodebird-api/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"password": "nodejsbook",
"database": "nodebird",
"host": "127.0.0.1",
"dialect": "mysql",
"operatorsAliases": false
"dialect": "mysql"
},
"test": {
"username": "root",
Expand Down
16 changes: 8 additions & 8 deletions ch10/10.4/nodebird-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@
"author": "Zero Cho",
"license": "ISC",
"dependencies": {
"bcrypt": "^3.0.7",
"cookie-parser": "^1.4.4",
"bcrypt": "^4.0.1",
"cookie-parser": "^1.4.5",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"express-session": "^1.17.0",
"express-session": "^1.17.1",
"jsonwebtoken": "^8.5.1",
"morgan": "^1.9.1",
"morgan": "^1.10.0",
"mysql2": "^2.1.0",
"nunjucks": "^3.2.1",
"passport": "^0.4.1",
"passport-kakao": "1.0.0",
"passport-local": "^1.0.0",
"nunjucks": "^3.2.0",
"sequelize": "^5.21.3",
"uuid": "^3.3.3"
"sequelize": "^5.21.7",
"uuid": "^7.0.3"
},
"devDependencies": {
"nodemon": "^2.0.2"
"nodemon": "^2.0.3"
}
}
2 changes: 1 addition & 1 deletion ch10/10.4/nodebird-api/routes/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const express = require('express');
const uuidv4 = require('uuid/v4');
const { v4: uuidv4 } = require('uuid');
const { User, Domain } = require('../models');

const router = express.Router();
Expand Down
Loading

0 comments on commit 588754b

Please sign in to comment.