File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,17 @@ Fullstack:
2626
2727> [ Angular 11 + Node.js Express + MySQL example] ( https://bezkoder.com/angular-11-node-js-express-mysql/ )
2828
29+ > [ Angular 12 + Node.js Express + MySQL example] ( https://bezkoder.com/angular-12-node-js-express-mysql/ )
30+
2931> [ React + Node.js + Express + MySQL example] ( https://bezkoder.com/react-node-express-mysql/ )
3032
33+ Integration (run back-end & front-end on same server/port)
34+ > [ Integrate React with Node.js Restful Services] ( https://bezkoder.com/integrate-react-express-same-server-port/ )
35+
36+ > [ Integrate Angular with Node.js Restful Services] ( https://bezkoder.com/integrate-angular-10-node-js/ )
37+
38+ > [ Integrate Vue with Node.js Restful Services] ( https://bezkoder.com/serve-vue-app-express/ )
39+
3140## Project setup
3241```
3342npm install
Original file line number Diff line number Diff line change 11const express = require ( "express" ) ;
2- const bodyParser = require ( "body-parser" ) ;
2+ // const bodyParser = require("body-parser"); /* deprecated */
33const cors = require ( "cors" ) ;
44
55const app = express ( ) ;
@@ -11,10 +11,10 @@ var corsOptions = {
1111app . 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
1919const db = require ( "./app/models" ) ;
2020
You can’t perform that action at this time.
0 commit comments