Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2281fc5

Browse files
committed
update package module for node 10
1 parent 95f60c3 commit 2281fc5

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

‎README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
# Node.js Express, Sequelize & PostgreSQL: CRUD Rest APIs
22

3-
For more detail, please visit:
3+
For instruction, please visit:
44
> [Node.js CRUD Rest APIs with Express, Sequelize & PostgreSQL example](https://bezkoder.com/node-express-sequelize-postgresql/)
55
6+
More Practice:
67
> [Node.js Express Pagination with PostgreSQL example](https://bezkoder.com/node-js-pagination-postgresql/)
78
9+
> [Node.js Express File Upload Rest API example](https://bezkoder.com/node-js-express-file-upload/)
10+
11+
> [Node.js Express File Upload with Google Cloud Storage example](https://bezkoder.com/google-cloud-storage-nodejs-upload-file/)
12+
813
Security:
914
> [Node.js JWT Authentication & Authorization with PostgreSQL example](https://bezkoder.com/node-js-jwt-authentication-postgresql/)
1015
@@ -18,11 +23,13 @@ Fullstack:
1823
1924
> [React + Node.js + Express + PostgreSQL example](https://bezkoder.com/react-node-express-postgresql/)
2025
21-
> [ANgular 8 + Node.js + Express + PostgreSQL example](https://bezkoder.com/angular-node-express-postgresql/)
26+
> [Angular 8 + Node.js + Express + PostgreSQL example](https://bezkoder.com/angular-node-express-postgresql/)
27+
28+
> [Angular 10 + Node.js + Express + PostgreSQL example](https://bezkoder.com/angular-10-node-express-postgresql/)
2229
23-
> [ANgular 10 + Node.js + Express + PostgreSQL example](https://bezkoder.com/angular-10-node-express-postgresql/)
30+
> [Angular 11 + Node.js + Express + PostgreSQL example](https://bezkoder.com/angular-11-node-js-express-postgresql/)
2431
25-
> [ANgular 11 + Node.js + Express + PostgreSQL example](https://bezkoder.com/angular-11-node-js-express-postgresql/)
32+
> [Angular 12 + Node.js + Express + PostgreSQL example](https://bezkoder.com/angular-12-node-js-express-postgresql/)
2633
2734
Integration (run back-end & front-end on same server/port)
2835
> [Integrate React with Node.js Restful Services](https://bezkoder.com/integrate-react-express-same-server-port/)

‎package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@
1717
"author": "bezkoder",
1818
"license": "ISC",
1919
"dependencies": {
20-
"body-parser": "^1.19.0",
2120
"cors": "^2.8.5",
2221
"express": "^4.17.1",
23-
"pg": "^7.17.1",
24-
"pg-hstore": "^2.3.3",
22+
"pg": "^8.6.0",
23+
"pg-hstore": "^2.3.4",
2524
"sequelize": "^5.21.3"
2625
}
2726
}

‎server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const express = require("express");
2-
const bodyParser = require("body-parser");
2+
// const bodyParser = require("body-parser"); /* deprecated */
33
const cors = require("cors");
44

55
const app = express();
@@ -11,10 +11,10 @@ var corsOptions = {
1111
app.use(cors(corsOptions));
1212

1313
// parse requests of content-type - application/json
14-
app.use(bodyParser.json());
14+
app.use(express.json());/* bodyParser.json() is deprecated */
1515

1616
// parse requests of content-type - application/x-www-form-urlencoded
17-
app.use(bodyParser.urlencoded({ extended: true }));
17+
app.use(express.urlencoded({ extended: true }));/* bodyParser.urlencoded() is deprecated */
1818

1919
const db = require("./app/models");
2020
db.sequelize.sync();

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /